still not clear what exactly determines which pages are to be displayed
and which one is not...
can you clarify that?

>> If we are on page1 .... according to the condition it is redirected
to page2
or page3.

what's this 'condition'???

your 'procedure' just loops over your list of 4 page names and outputs
ALL of them - you just need to incorporate your 'condition' into the
loop to not display the page that should not be displayed.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Pranathi Reddy wrote:
> Any ideas?
>
>   
>> I have 4 pages in my application
>> Page1, Page2, page3 and page4
>>
>> I am trying to do something like this (saw in some post):
>>
>> <cfset pagelist = "Page1,Page2,Page3,Page4">
>> <cfoutput>
>>  <table align="center">
>>   <cfset stepCounter = 0>
>>  <cfloop list="#pagelist#" index="i">
>>   <cfset stepCounter = stepCounter +1>
>>   <cfif arguments.pagename EQ "#trim(i)#">
>>    <cfset styleclass = "HighLight">
>>   <cfelse>
>>    <cfset styleclass = "NoHighlight">
>>   </cfif>
>>   <tr>
>>     <td class="#styleclass#" nowrap>Step #stepCounter#: </td><td
>> class="#styleclass#" nowrap>#getContent('#arguments.PageID#',
>> '#i#').title#</td>
>>     </tr>
>>  </cfloop>
>>  </table>
>>  </cfoutput>
>>
>> I am trying to  display the list of the page rendering.
>> If we are on page1 .... according to the condition it is redirected to page2
>> or page3.
>>
>> The total number of steps should be only 3 and according to the procedure
>> above it display's 4 steps.  It means that it should either be on page2 or
>> page3 and not both.
>>
>> Thanks,
>> Pranathi.
>>
>> On Sun, Mar 1, 2009 at 5:37 PM, Rick Faircloth 
>> <r...@whitestonemedia.com>wrote:
>>
>>     
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319977
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to