I would think you'd do it the other way around, and translate
the meaningless text to a real fuseaction.  Otherwise, what a
b-otch it would be to edit that index.cfm file.  

But that's a great idea.  You could cache it in the Application
scope, too.

-Erik
> 
> Why not just use a structure that translates the fuseaction to the 
> "meaninless" text", and then all you have to do is change the 
> values in the 
> structure.  You could even load up the structure from your DB!
> 
> For example:
> 
> In app_globals.cfm do this:
> 
> <CFSCRIPT>
>       FuseActions=StructNew();
>       StructInsert(FuseActions, "main", "ehaldllflad");
>       StructInsert(FuseActions, "insert_new", "dkkgkakdkaksdf");
>       StructInsert(FuseActions, "delete_job", "dkgkgfksdkwektkvfkf");
>       StructInsert(FuseActions, "check_security", "aksdfa;lsdfkj");
>       StructInsert(FuseActions, "update_job", "jkjj3j12j4jrjsj");
>    </CFSCRIPT>
> 
> In your code/pages when you want to go to a fuse action, do this:
> 
>          <a href="index.cfm?FuseAction=#FuseActions.main#">Go Home</a>
> 
> OR
> 
>          <CFLOCATION url="test.cfm?FuseAction=#FuseActions.main#">
> 
> In your index.cfm, do this:
> 
> <CFSWITCH expression="#Attributes.FuseAction#">
> 
>          <CFCASE value="#FuseAction.main#">
>                  do main menu stuff
>          </cfcase>
> 
> </cfswitch>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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