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> </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
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> </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