Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Split links list after 10 links

Quote Reply
Split links list after 10 links
How to split links list to show banner(or other info) for example after 10 link.etc.

Help please.I think its usefull for all users.

P.s. Im use Links sql ng.

Quote Reply
Re: [Mich_U] Split links list after 10 links In reply to
Hi,

With 2.0.5 you can replace: <%link_results%> with:

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
--
Gossamer Threads Inc.