hi Lee,
I've made a simple change to the tag and it seems to work perfectly
in the contact manager. Below are the changes:
file: circuits.cfm
<CF_AddCircuits
MyName="scm"
Children="Contacts,UserManager"
myLOCATION="#GetCurrentTemplatePath()#">
Then replace all "ATTRIBUTES.location" by "ATTRIBUTES.mylocation" in xfb.cfm
I suppose that CF server interpretes ATTRIBUTES.location diferently.
ciao
josian
-----Original Message-----
From: lee borkman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 11:46 AM
To: Fusebox
Subject: Re: CF addcircuits alias
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" <[EMAIL PROTECTED]>
>
>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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists