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

Span Pages Problem

Quote Reply
Span Pages Problem
Hi,

I recently upgraded from Links2.0 to LinksSQL and I have a problem with the span pages code. I tried both of these code fragments and neither work:

This . . .
Code:
<%if prev%>
<small><a href="<%prev%>">Prev <%build_links_per_page%></a></small>
<%endif%>
<%if next%>
<small><a href="<%next%>">Next <%build_links_per_page%></a></small>
<%endif%>
And this . . .
Code:
<%if prev%>
<small><%prev%></small>
<%endif%>

<%if next%>
<small><%next%></small>
<%endif%>

What I see on the pages is the URL to the next page printed out and not a series of numbers from 1 2 3, etc with underlines linking to the subsequent pages.

I have the span pages toggle turned "ON" in Links.pm so I'm at a loss.

Douglas

Any ideas?
Quote Reply
Re: Span Pages Problem In reply to
Hi Doug,

In Links SQL <%prev%> no longer says the word Prev and is linked, it is now just a URL. So you should change it to:

<a href="<%prev%>">Previous</a>

Alternatively, if you want the Pages 1 2 3 >> look, you can use:

Pages: <%next_span%>

Hope that helps,

Alex
Quote Reply
Re: Span Pages Problem In reply to
D'oh! You beat me to the punch, Alex.

Alex was kind enough to email me the correction for my problem above. Here's the code I am now using in my category.html template:

Code:
<%if next%>
Pages: <%next_span%>
<%endif%>
</p>

Thanks again to Alex!

Douglas

[This message has been edited by Douglas (edited January 14, 2000).]