Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

find page siblings within <% control Children %>

Go to End

2 Posts   2154 Views


Community Member, 63 Posts

22 October 2010 at 3:22am


perhaps someone can help me to find a way to link to an element sibling regardless of where I am.

I want to display multiple pages on one webpage - navigating with a javascript scroller, like

Using the navigation, everything works fine but building the pager within those child elements seems to be complicated.

<% control Children %>
<div class="section">
		<li class="sub" id="$URLSegment">
			<h1>$URLSegment - Headline</h1>
                       <%-- PREV SIBLING NEXT --%>	
<% end_control %>

Any Idea?

Thanks much in advance


Forum Moderator, 1899 Posts

28 October 2010 at 10:45pm

Totally untested or reasearched idea, but why not try getChildrenAsUL(), partialTreeAsUL() or SiteTreeAsUL() to get you the UL straigh away?