no, it doesn't.. if you want to call fuseactions in a different circuit 
app, you would need to specify their location fully without using 
#fuseactionPrefix#.
hmmm...

so i guess the delimma is what if you want to do the plug n play solution 
for a two-deep circuit app like
users/
users/maintenance
users/reports
users/spamming

and then you want to reference the spamming circuit from the reports 
circuit and have this not break when you put the whole users circuit into 
another app like
thisapp/admin/users/...

Basically you'd need to take the fuseaction prefix and subtract list 
elements from the right depending on how many levels you want to recurse 
back.. we could leave this to the coder to do manually or have the tag 
return an array of fuseaction prefixes or something, but that doesn't 
account for letting someone put users/spamming over at thisapp/spamming and 
still have the users/reports circuit able to find it.  Would you ever want 
to do this?  Perhaps i should ask, has anyone ever wanted to do this?

At 04:46 PM 4/25/01 -0400, you wrote:
>Does this address calling fuseactions that are in a different circuit app?
>Perhaps I'm not following it.
>
>Bob
>
>-----Original Message-----
>From: Ken Beard [mailto:[EMAIL PROTECTED]]
>Sent: April 25, 2001 7:13 PM
>To: Fusebox
>Subject: cf_fuseactionPrefix - New Nesting Idea!
>
>
>Hey somebody come back to me on this one.. I think i just made a really
>cool custom tag that accomplishes what circuits.cfm and nesting.cfm are
>doing, but with less hassle.
>
>The problem circuits/nesting are trying to defeat is that when you plug a
>circuit into an app, you have to go in and change the fuseaction prefixes
>in the xfa's.  Instead of the circuits/nesting solution which requires you
>to alter the nesting.cfm file whenever you plug in circuits, you could set
>a variable named fuseactionPrefix at the top of the index and just output
>that each time you're setting an XFA like <cfset
>xfa.edit="#fuseactionprefix#.edit">.
>I just wrote a custom tag I'm tenatively naming cf_fuseactionPrefix which
>would automatically set this variable.  Just run this custom tag at the top
>of every index.cfm in your application.  The code for this tag is as
>follows:
>
><cfparam name="attributes.defaultFuseaction" default="">
><cfparam name="caller.heirarchyLevel" default="0">
><cfscript>
>// code for fuseaction prefix
>caller.heirarchyLevel=caller.heirarchyLevel+1;
>caller.fuseactionPrefix="";
>for(i=1;i lte (caller.heirarchyLevel-1);i=i+1){
>
>caller.fuseactionPrefix=listappend(caller.fuseactionPrefix,listgetat(caller.
>attributes.fuseaction,i,"."),".");
>}
>
>// code for defaulting the fuseaction.
>if(listlen(caller.attributes.fuseaction,".") lt caller.heirarchyLevel){
>
>caller.attributes.fuseaction=listappend(caller.attributes.fuseaction,attribu
>tes.defaultfuseaction,".");
>}
></cfscript>
>
>Just run this tag at the top of each index and output #fuseactionPrefix# in
>your xfa's and you're set to plug and play.
>
>anybody with me here?  seems like a really good idea, but i just thought of
>it as i was writing this message.  I just tested it on one of my
>applications and it seems to work!
>I uploaded a zip file with this tag to my cfug site at
>http://www.tbcfug.org/index.cfm?fuseaction=files.details&file_id=58  You
>can go there to download it.
>
>p.s. i also made this tag handle defaulting the fuseaction at this level of
>the heirarchy.
>
>-----------------------------------------------------
>Ken Beard
>Manager, Application Development
>Stone Ground Solutions
>5100 West Kennedy Blvd, Suite 430
>Tampa FL  33602
>813.387.1235 voice
>866.767.4051 toll free
>813.387.1237 fax
>www.stoneground.com
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to