Well Hi Josian,
You are talking about my CF_XFB and CF_AddCircuits tags. They are not really essential for doing XFB coding. They are just my little attempt to hide away some of the initially daunting internals of XFB.
The circuits.cfm files use CF_addCircuits to define a whole set of circuit aliases. This is part of the XFB idea - to give EVERY circuit in the entire app a simple alias. From that point, you always call a fuseaction by a two-part name - circuit.fuseaction, and XFB or CF_XFB sorts it all out, calls all of the various . So yes, you still refer to "con.newContactInfo". In the case you have mentioned, the code is not redefingin the circuits, but USING the circuit definitions to define a particular set of eXitFuseActions.
And the reason for this below?: <CF_XFB MYLOCATION="#getcurrenttemplatepath()#">
The MyLocation attribute is necessary because CF_XFB needs to know what directory it was CALLED from, so that it can find the right Circuits files and sub-circuits. As far as I know, there is no other way for a CustomTag to find out the location of the calling tag, other than to pass it directly like this. Anyone know a better way?
Thanks very much for having a look, Let us know if you have any further questions, Lee Bjork Borkman
>From: "josian" <josian@tropitex-oi.com> > >Hi, >Newbie to XFB mostly in the use of the CF_addcircuits. >have read the posts on the forum but still d'ont get it...:-(( >wanna know how u deal with the circuits definitions why u >put the code mentioned below in ur myglobals.cfm(downloaded from bjork.net >) > ><cfset attributes.XFA.listAllContacts = "con.home"> ><cfset attributes.XFA.addContact = "con.newContactInfo"> ><cfset attributes.XFA.editContact = "con.editContactInfo"> ><cfset attributes.XFA.deleteContact = "con.deleteContact"> > >If the circuits has already been defined by the CF_addcircuits then why >put the "con" rather than the alias declared. > >also why put <CF_XFB myLOCATION="#getcurrenttemplatepath()#"> in the >index.cfm. Usualy the <cf_xfb> must be located in custom tags directory.. >confusing??? > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/fusebox@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists