Hi Mike,
I just tested my idea within my test project and it worked. Just use
the code below within the list template and you'll see that the
counter will be increased. Of course before the code can be used
you'll have to activate server side scripting in the project variant.
<!IoRangePreExecute>
<% i = 1 %> <--------------------- initialize the counter
<!IoRangeList>
<div class="gtArticleListItem">
<h3 id="section<%=i%>"><%hdlHeadline%></h3> <-----------
write the counter
<p><%txtTeaserText%></p>
<b><a href="<%lstListContent%>"><%stdReadMoreLink%></a></b>
</div>
<% i = i + 1 %> <--------------- increase the counter
<!/IoRangeList>
<!/IoRangePreExecute>
On 21 Apr., 21:23, Mike Correia <[email protected]> wrote:
> Is it possible to have a list where a number for that list item is
> auto-generated. I have content that relies on a number so that if I
> have
>
> <li id="section 1">Page</li>
> <li id="section 2">Page</li>
> <li id="section 3">Page</li>
>
> And I remove "section 2" is there a way that the list knows this and
> will rename "section 3" the new "section 2"?
>
> I need for listings to auto adjust their class based on the order they
> are in....
>
> Thanks,
>
> -mike
--
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.