Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Fusebox
Cold Fusion Fuse Box List
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About CF Fusebox Methods :
product's home
product's list home
 
  Archived TallyList / Fusebox: 
Subject: Re: CF addcircuits alias
lee borkman (48p/+0r)     Posted: Wednesday 25 Apr 2001
This post: 36 views, +0 rating

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


Similar Subject Line Posts (+/- two weeks of this post)
RE: CF addcircuits alias  25 Apr 2001   (20 v/ +0 r)
Re: CF addcircuits alias  25 Apr 2001 (this post)   (36 v/ +0 r)
CF addcircuits alias  24 Apr 2001   (19 v/ +0 r)
 

Send a reply to the Fusebox list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000