Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Every x Links in Search-Result...

Quote Reply
Every x Links in Search-Result...
Hi,
i need to implement a CSS-page-break after 5 links in my search-results (<p style="page-break-before:always"></p>)...

How can i put my tag after 5 Links in my search-result-page?

Thanks in advance!

Coyu
Quote Reply
Re: [Coyu] Every x Links in Search-Result... In reply to
This may help:

http://www.gossamer-threads.com/...after%20link;#166501

Code:
<%loop link_results%>
<%ifnot row_num % 10%>
display banner here
<%endif%>
<%include link_html%>
<%endloop%>

row_num is equal to the row number you are on,
and row_num % 10 will be false on the 10, 20, 30, etc rows.

Cheers,

Alex

Regards

minesite

Last edited by:

minesite: Sep 7, 2004, 3:33 PM