By the way - I'm using a global <!IoRangePreExecute> for this
template. Maybe this is the main problem?
I'm pre-executing all template (to be precise - banner block holder)
to determine the layout i need to use (1 large; 3 small, 1 mid - 1
small).

On Sun, Aug 23, 2009 at 15:02, Kristaps
Karlsons<[email protected]> wrote:
> Thanks, Eric! I'll check your solution (with html comment) soon.
> RenderTags wont work at my case – I need to count list elements, and
> after every third, insert </div></div>. It's more like js "for"
> statement.
>
> By the way – RenderTags looks like a good solution for "everyday
> problems". Is there any place/documentation/book, where I could get
> more detailed info?
>
> Thanks,
> Kristaps
>
> On Sun, Aug 23, 2009 at 06:01, Eric Koleda<[email protected]> wrote:
>>
>> Hi,
>>
>> That looks like valid code, although I would put the list in HTML
>> comments, because there are occasionally problems with the RedDot Mode/
>> No RedDot Mode combination.
>>
>> Another way to get the count is with RenderTags:
>>
>>  <%!! Context:CurrentPage.Elements.GetElement
>> (list_special).Value.Count !!%>
>>
>> There are some strange issues with caching that can arise when using
>> RenderTags like this, so I'd test that it updates correctly when
>> adding or removing a page.
>>
>> Best,
>> - Eric
>>
>> On Aug 22, 12:08 pm, Kristaps Karlsons <[email protected]>
>> wrote:
>>> Hello.
>>>
>>> Which is the correct way, to create a simple list counter?
>>>
>>> <% intCountMe = 0 %>
>>> <!IoRangeList><!IoRangeRedDotMode><!IoRangeNoRedDotMode><%list_special
>>> %><!/IoRangeNoRedDotMode><!/IoRangeRedDotMode>
>>>                 Count: <% Response.Write(intCountMe) %>
>>> <% intCountMe = intCountMe + 1 %>
>>> <!/IoRangeList>
>>> - doesn't seem to work.
>>>
>>> Had anybody encoutered this problem?
>>> I'm developing ver 7.5.
>>>
>>> Tutorials are welcome, as much as quick solutions.
>> >>
>>
>
>
>
> --
> _______________________
> Kristaps Karlsons
> +371 26 80 1865
>



-- 
_______________________
Kristaps Karlsons
+371 26 80 1865

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to