Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Change # Links Per Page/Create Next Page Link?

Quote Reply
Change # Links Per Page/Create Next Page Link?
I want only 10 links to display on each page in the subcategories with a link at the bottom of the page to continue on to the next page of links in that category. Preferably, I would like the link to be page numbers, but next would do. Where and how would I do this?

KittyMother


Quote Reply
Re: Change # Links Per Page/Create Next Page Link? In reply to
Uh...in the Links.pm file...look for the following text and codes:

Code:

# Turn on span mode. This will create new pages if a category has more
# then build_links_per_page links in it. It will break up the what's new listing
# into per day pages.
$LINKS{build_span_pages} = 1;
$LINKS{build_links_per_page} = 10;


You need to make sure that the first variable is set to 1 to turn on the spannning pages. Then the second variable controls the number of links per page.

Then in your category.html file, make sure that you have the following codes:

Code:

<%if next%>
<%next%>
<%endif%>


This should go before and/or after the following codes:

Code:

<%if links%>
<%links%>
<%endif%>


BTW: The Links.pm controls most of the variables used in Links SQL.

Regards,

Eliot Lee