Nested RangeList in RedDot

51 views
Skip to first unread message

THRD

unread,
May 10, 2012, 8:32:50 AM5/10/12
to RedDot CMS Users
I currently have an issue where I am running a IoRangeList to loop
through <li> elements within a <ul> which worked fine. However when I
try to add another IoRangeList nested within one of the <li> elements
the outer list only runs once.
The effect I am trying to create is:

<ul>
<!IoRangeList><%lst_one%>
<li></li>
<li></li>
<li>
<ul>
<!IoRangeList><%lst_two%>
<li></li>
<li></li>
<!/IoRangeList>
</ul>
</li>
</ul>
<!/IoRangeList>

I am trying to work out why the initial list now only loops once but
can't get my head around it. If anyone can help that would be great!

Thanks,

shandlon

unread,
May 10, 2012, 8:49:50 AM5/10/12
to RedDot CMS Users
You opening <ul> is outside the <ioRangelist> and you closing </ul>
inside the <ioRangelist>. not sure that is causing the list to not
repeat thoguh.

Jian Huang

unread,
May 10, 2012, 9:42:18 AM5/10/12
to reddot-c...@googlegroups.com
Hi,

list blockmark cannot be nested within another list blockmark

THRD

unread,
May 10, 2012, 9:49:39 AM5/10/12
to RedDot CMS Users
Is there another possible solution for getting the desired result here
Jian?

Thanks,

THRD

unread,
May 10, 2012, 9:11:39 AM5/10/12
to RedDot CMS Users
apologies, that is just a mistake in this example.

Jian Huang

unread,
May 10, 2012, 11:56:37 AM5/10/12
to reddot-c...@googlegroups.com
Hi,

Please keep in mind that my answer is based on the provided code (There might be better ways to achieve what you are trying to do if more information is known)

You can have 2 content classes

<ul>
      <%con_items%>
</ul>



<li>
       <a href="<%anc_item%>"><%hdl_title%></a>
       <!IoRangeConditional>
       <ul>
              <%con_sub_items%>
       </ul>
       </!IoRangeConditional>
</li>
Reply all
Reply to author
Forward
0 new messages