Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Proper template parser syntax?

Quote Reply
Proper template parser syntax?
Hi all,

I'm trying to optimise the following code that is currently WORKING but seems a bit clunky to me:

<%-- Begin Featured Loop --%>
<%loop links_loop%>
<%if Overview_Status eq Featured %>
<tr><td>&nbsp;</td></tr>
<tr><td bgcolor="eeeeee">Featured</td>
</tr>
<%lastloop%>
<%endif%>
<%endloop%>

<%loop links_loop%>
<%if Overview_Status eq Featured %>
<tr><td>
<%include link.html%>
</td></tr>
<%endif%>
<%endloop%>
<%-- End Featured Loop --%>

Basically I'm trying to parse a bunch of links into "buckets". First, I want to loop through the set of links and see if there are any links in a particular bucket, in this example the bucket is "Featured". Then, if there is a "Featured" link, I want to go back through the array and pull ALL of the links in that bucket and place them under the "Featured" header.

Thanks to any of you template gurus out there that can help me.

Mike
Subject Author Views Date
Thread Proper template parser syntax? Swaylock 1259 Feb 27, 2003, 5:49 PM
Thread Re: [Swaylock] Proper template parser syntax?
Alex 1227 Feb 27, 2003, 9:06 PM
Post Re: [Alex] Proper template parser syntax?
Swaylock 1201 Feb 28, 2003, 10:39 AM