Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [rascal] if statement help needed: Edit Log

Here is the list of edits for this post
Re: [rascal] if statement help needed
How about this one:

<%if link_results_loop.length~%>

<%loop link_results_loop~%>
<%if story eq 'Yes'~%>
<%set MY_TITLE_AVAILABLE = 'YES'%>
<%~endif%>
<%~endloop%>

<%if MY_TITLE_AVAILABLE eq 'YES'%>
<h3>My Title:</h3>
<%endif%>

<%if title_loop.length%>
<%~set formatted_title = Links::Utils::format_title($title_loop, separator => $category_separator, no_escape_separator => $no_escape_category_separator, include_home => 0, link_type => 1)%>
<p class="category"><%if highlight and query%><%Links::Tools::highlight($formatted_title, $query)%><%else%><%formatted_title%><%endif%></p>
<%~endif%>

<%loop link_results_loop~%>
<%if story eq 'Yes'~%>
<%include link.html%>
<%~endif%>
<%~endloop%>
<%~endif%>


This one is with additional <%loop link_results_loop~%> (I am sure that there is a better way to solve this problem)

Last edited by:

Payooo: Jun 27, 2005, 7:49 PM

Edit Log: