Gossamer Forum
Home : Products : Gossamer Links : Discussions :

New Page Loop question

Quote Reply
New Page Loop question
Hi,

I was wondering whether on the new.html page since I use CSS code to render the loop of new links prior to the loop whether it was possible to use this :

<%if new_index~%>

<%if loop link_results_loop%>
<dl class="new_links_css_style">
<%endif%>


<%~loop link_results_loop%>

in order to only display the css if there are new links or a new link.

Otherwise I get a validation error with the W3C :

"lists (ul, ol, dl) require list items (li, or dt, dd), and so on."

when there are no links since it will display <dl class="new_links_css"></dl> when there are no links with no list !

PS : I'm not really sure what the tilde ~ sign is for an whether I should include it ?
Significant Media