Hello,
The out of box solution is to use the page id of the pages connected
or referenced by the list.
Code:
<!IoRangeList>
<!-- <%lst_thisweek%> -->
<li>
<a href="<%anc_thisweek%>?col<%inf_page_id%>=open#CollapsiblePanel<
%inf_page_id%>#top"><%hdl_title%></a>
</li>
<!/IoRangeList>
Then on the pages that the list refers to, instead of using ids like
CollapsiblePanel1, CollapsiblePanel2, CollapsiblePanel3, you can use
CollapsiblePanel<%inf_page_id%>.
Alternatively, if we must start with 1 and iterate through. You may
try using the following 2 solutions.
1. Use javascript or jquery to get all the anchors in that UL,
iterate through and change the href
2. Use preexecution, an option I strongly recommend against for
performance reasons.
C# Code:
<!IoRangePreExecute>
<%
int LinkNum = 0;
%>
<!IoRangeList>
<!-- <%lst_thisweek%> -->
<li>
<%
LinkNum++;
%>
<a href="<%anc_thisweek%>?col<%=LinkNum.ToString()
%>=open#CollapsiblePanel<%=LinkNum.ToString()%>#top"><%hdl_title%></a>
</li>
<!/IoRangeList>
<!/IoRangePreExecute>
VBScript Code:
<!IoRangePreExecute>
<!IoRangeList>
<!-- <%lst_thisweek%> -->
<li>
<%
LinkNum = LinkNum + 1
%>
<a href="<%anc_thisweek%>?col<%=LinkNum%>=open#CollapsiblePanel<
%=LinkNum%>#top"><%hdl_title%></a>
</li>
<!/IoRangeList>
<!/IoRangePreExecute>
On Dec 17, 8:49 am, shandlon <[email protected]> wrote:
> We need it to start with 1 and then just increase as it goes through
> the list of pages that have been added.
>
> On Dec 17, 8:34 am, [email protected] wrote:
>
> > Shandlon,
>
> > Do you need the numbers to be 1, 2, 3, 4 or just something unique and not
> > 1? If you just need unique values, we've pulled through the page I'd of the
> > connected page and used that.
>
> > -Emily
>
> > Sent via BlackBerry by AT&T
>
> > -----Original Message-----
> > From: shandlon <[email protected]>
>
> > Sender: [email protected]
> > Date: Fri, 17 Dec 2010 05:16:37
> > To: RedDot CMS Users<[email protected]>
> > Reply-To: [email protected]
> > Subject: Adding a variable to a list
>
> > I have this code using spry to open and close content:
>
> > <ul>
> > <li><a href="http://cmstest2.app.wsfgrp.net/thisweek/
> > default.asp?col1=open#CollapsiblePanel1#top">Information Security:
> > Think before You Click </a></li>
> > <li><a href="http://cmstest2.app.wsfgrp.net/thisweek/
> > default.asp?col2=open#CollapsiblePanel2#top">Capital Analysts Wealth
> > Management Forum </a></li>
> > <li>http://cmstest2.app.wsfgrp.net/thisweek/default.asp?
> > col3=open#CollapsiblePanel3#top">E-mail Groups Now Available in
> > Outlook</a></li>
> > <li>http://cmstest2.app.wsfgrp.net/thisweek/default.asp?
> > col4=open#CollapsiblePanel4#top">Weight Watchers at Work Open House </
> > a></li>
>
> > </ul>
>
> > Is there a way to use a range list so that the ?
> > col1=open#CollapsiblePanel1#top will increase everytime reads the page
> > and builds out the link:
>
> > <!IoRangeList><li><a href="<%anc_thisweek%>?
> > col1=open#CollapsiblePanel1#top"><!-- <%lst_thisweek%> --><%hdl_title
> > %></a></li><!/IoRangeList>
>
> > of course if I use this line abobe then each link only opens the top
> > link. I need a way to increase the number by one each time is loops
> > through.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "RedDot CMS Users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group
> > athttp://groups.google.com/group/reddot-cms-users?hl=en.-Hide quoted text -
>
> > - Show quoted text -
--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/reddot-cms-users?hl=en.