Hi,
I'm trying to make some page in PageBuilder, for a "tour"of our new site. Basically, I have;
<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> </em> <%endif%></strong></li>
<%else%>
<li><a href="<%build_root_url%>/about/tour/<%page_filename%>"><%page_title%></a><%if last%><em> </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!
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> </em> <%endif%></strong></li>
<%else%>
<li><a href="<%build_root_url%>/about/tour/<%page_filename%>"><%page_title%></a><%if last%><em> </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!