Hi Everyone,
I have this code that works fine except when no links have <%story eq 'Yes'~%>
The Header shows: My Title: which I do not want.
I did try to correct this, but had no success.
<%if link_results_loop.length~%>
<h3>My Title:</h3>
<%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%>
Can I stop the Header from showing when no Links Available?
Thanks in Advance!!!
I have this code that works fine except when no links have <%story eq 'Yes'~%>
The Header shows: My Title: which I do not want.
I did try to correct this, but had no success.
<%if link_results_loop.length~%>
<h3>My Title:</h3>
<%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%>
Can I stop the Header from showing when no Links Available?
Thanks in Advance!!!