Sagewire Logo

There are three folders. fbx_settings.cfmdsp_recommendation.CFM Mainsubmenu.CFM how do they worktogether?

2 Message(s) by 2 Author(s) originally posted in advanced cfml techniques


From: susanring Date:   Wednesday, October 24, 2007
There are three folders. fbx_settings.CFM dsp_recommendation.CFM
Mainsubmenu.CFM how do they work together? There are three folders.

These are under the one of the main folders/menu menu2

So it Is
LLS /menu2/recognition
And then the 3 files
fbx_settings.CFM
dsp_recommendation.CFM
Mainsubmenu.CFM

I understand that dsp is a fuse but what does this code do ?
It has a loop ?

<CFLOOP from="1" to="#arraylen(request.menu.main)#" index="x">
<CFSET link =
"#self#?fuseaction=#request.menu.main[x][2]#&do=view&menu=#attributes.menu#">

<CFIF CompareNocase(x,attributes.menu)>
<CFSET imgSubMenugege = "gegemenu3.gif">
<CFELSE>
<CFSET imgSubMenugege = "gegemenu.gif">
</CFIF>
<a href="#variables.link#" <CFIF ListContainsNoCase(attributes.fuseaction,
"#request.menu.main[x][3]#")>
class="thislinksthemainmenu"</cfif#
request.menu.main[x][1]#</a>
&nbsp;&nbsp; |&nbsp;&nbsp;


</CFLOOP>

Then it has a fbx_settings <CFSET XFA

in the fbx_settings?

Also, what does this CFSCRIPT do in Mainsubmenu.cfm?

<CFSCRIPT>

request.menu.Main2 = arraynew(2); a = 1;
request.menu.Main2[a][1] = "bandera";
request.menu.Main2[a][2] = "#XFA.refbandera#";
request.menu.Main2[a][3] = "bandera"; how doe the files work with each other? <!------fbx_settings.cfm----
<CFSET XFA.refbandera = "recommendation.bandera" >

<CFSET XFA.refwork = "recommendation.work" >
<CFSET XFA.refRace = "recommendation.Race" >
<CFSET XFA.refstanding = "recommendation.standing" >
<CFSET XFA.refretanchecktype = "recommendation.retanchecktype" >
<CFSET XFA.reftrophy = "recommendation.trophy" >
<CFSET XFA.refrankings = "recommendation.rankings" >

<CFSET XFA.refHead = "recommendation.Head" > <!------ Mainsubmenu.cfm---?
<CFSCRIPT>

request.menu.Main2 = arraynew(2); a = 1;
request.menu.Main2[a][1] = "bandera";
request.menu.Main2[a][2] = "#XFA.refbandera#";
request.menu.Main2[a][3] = "bandera";
a = a + 1;
request.menu.Main2[a][1] = "work";
request.menu.Main2[a][2] = "#XFA.refworks#";
request.menu.Main2[a][3] = "work";

a = a + 1;
request.menu.Main2[a][1] = "Race";
request.menu.Main2[a][2] = "#XFA.refRace#";
request.menu.Main2[a][3] = "Race";

a = a + 1;
request.menu.Main2[a][1] = "retancheck Date Type";
request.menu.Main2[a][2] = "#XFA.refretanchecktype#";
request.menu.Main2[a][3] = "retanchecktype";

if(FindNoCase("LLS Main2", client.Roles) OR FindNoCase("LLS Manager",
client.Roles) OR FindNoCase("LLS head" , client.Roles)) {

a = a + 1;
request.menu.Main2[a][1] = "Nobel position";
request.menu.Main2[a][2] = "#XFA.refposition#";
request.menu.Main2[a][3] = "position";

a = a + 1;
request.menu.Main2[a][1] = "trophy";
request.menu.Main2[a][2] = "#XFA.reftrophy#";
request.menu.Main2[a][3] = "trophy";

a = a + 1;
request.menu.Main2[a][1] = "jujAb gathering rankings";
request.menu.Main2[a][2] = "#XFA.refrankings#";
request.menu.Main2[a][3] = "rankings";

a = a + 1;
request.menu.Main2[a][1] = "department head";
request.menu.Main2[a][2] = "#XFA.refhead#";
request.menu.Main2[a][3] = "head";
}

</CFSCRIPT> <!--- dsp_recommendation.CFM ---?
<CFOUTPUT>

<table width="80%" cellspacing="2" cellpadding="2" align="center">
<tr bgcolor="E9EBE0">
<td width="10%" align="center">

<CFLOOP from="1" to="#arraylen(request.menu.main)#" index="x">
<CFSET link =
"#self#?fuseaction=#request.menu.main[x][2]#&do=view&menu=#attributes.menu#">

<CFIF CompareNocase(x,attributes.menu)>
<CFSET imgSubMenugege = "gegemenu3.gif">
<CFELSE>
<CFSET imgSubMenugege = "gegemenu.gif">
</CFIF>
<a href="#variables.link#" <CFIF ListContainsNoCase(attributes.fuseaction,
"#request.menu.main[x][3]#")>
class="thislinksthemainmenu"</cfif#
request.menu.main[x][1]#</a>
&nbsp;&nbsp; |&nbsp;&nbsp;


</CFLOOP>



</td>
</tr>
</table>


</CFOUTPUT>


From: dacf Date:   Thursday, October 25, 2007
Sorry, can not help on this at the mo, if no one else can, try here:
http://www.fusebox.org/go/fusebox-community/forums-and-email-lists



Next Message: Displaying Debug Output?!?



Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional