Hey Sean,
sorry, but I don't get it. As a tried to explain, I use to loops. The
inner one (shown below) renders the 5 links in my example. I can not
set reset="true" there because then I will never get a number greater
than 1. Each time the loop gets entered (5 times), the counter is set
back to 1 again.
I can not use differen cycle names, because I do not know before
runtime how many cycles are in my page. This depends on the outer
loop. I tried to use a <r:slug> tag as name for the loop, but this
does not work out.
This seems to be really complicated to explain. But what is needed is
really simple. I simply need a counter which I can set back to 1
without prodcing any output. In fact, it would be a variable defined
at the beginning of my page, incremented in a loop and set back to
zero after the loop.
Big thanks again,
rainer
On 11.03.2008, at 17:09, Sean Cribbs wrote:
rainer,
Either use a different cycle name or reset it on its next actual use.
Sean
rainer griess wrote:
Me again,
somewhere in my page I have this:
<r:child:attachment:each>
<a href="#"><r:cycle values="1, 2, 3, 4, 5" name="imagecnt" /></a>
</r:child:attachment:each>
This is part of another loop sourrounding it. I have to set the
cycle counter to 0 after the coder above is passed. Something like:
<r:child:attachment:each>
<a href="#"><r:cycle values="1, 2, 3, 4, 5" name="imagecnt" /></a>
</r:child:attachment:each>
<r:cycle values="1, 2, 3, 4, 5" name="imagecnt" reset="true" />
But this is generating output, which is not what I want. I need the
counter set to 0 without any output.
Is this possible?
Cheers,
rainer
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant