Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

PageBuilder .. loop of other sub-menu options?

Quote Reply
PageBuilder .. loop of other sub-menu options?
Hi,

I'm trying to make some page in PageBuilder, for a "tour"of our new site. Basically, I have;

Code:
<h3>Menu</h3>
<ul>

<%set cur = $page_id%>

<%loop sub_page_loop%>
<%cur%> eq <%page_id%><br>
<%if cur == $page_id%>
<li><strong><a href="<%build_root_url%>/about/tour/<%page_filename%>"><%page_title%></a><%if last%><em>&nbsp;</em> <%endif%></strong></li>
<%else%>
<li><a href="<%build_root_url%>/about/tour/<%page_filename%>"><%page_title%></a><%if last%><em>&nbsp;</em><%endif%></li>
<%endif%>
<%endloop%>

</ul>

For some reason, the loop isn't being created correctly, and only shows the 4 remaining pages, rather than all 5... with one bold.

I could probably just make it using a custom global; but if its already built in.. I'd rather use that feature <G>

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread PageBuilder .. loop of other sub-menu options? Andy 2773 Mar 14, 2005, 2:14 AM
Post Re: [Andy] PageBuilder .. loop of other sub-menu options?
fuzzy logic 2712 Mar 14, 2005, 2:50 AM
Post Re: [Andy] PageBuilder .. loop of other sub-menu options?
afinlr 2696 Mar 14, 2005, 5:55 AM
Thread Re: [Andy] PageBuilder .. loop of other sub-menu options?
yogi 2700 Mar 14, 2005, 12:54 PM
Post Re: [yogi] PageBuilder .. loop of other sub-menu options?
Andy 2686 Mar 14, 2005, 11:20 PM