Gossamer Forum
Home : Products : Links 2.0 : Customization :

Display the text Pages

Quote Reply
Display the text Pages
I have the altavista Style installed. This is how its displayes right now.....

[Prev] 1 2 [Next]

I want it to siplay like this....

Pages: [Prev] 1 2 [Next]

Quote Reply
Re: Display the text Pages In reply to
In the category.html file, simply add Pages: before the following tags:

Code:

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


Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: Display the text Pages In reply to
I knew about that before but this is the problem it causes...

Lets say I said display 10 links on each page in links.cfg

Now on the pages there are 8 links there won't be a Next or Previous Tag....

But the Pages text will be displayed...

I only want the Pages text to show when there are Next or Pevious Links

Quote Reply
Re: Display the text Pages In reply to
Just place it between the tags:

<%if next%>Pages:
<%next%>
<%endif%>
Quote Reply
Re: Display the text Pages In reply to
I don't know how to use the Enchanced mod for this but if you put this code in

<%if prev%>Pages
<%prev%>
<%endif%>
<%if next%>Pages
<%next%>
<%endif%>

This will display

Pages Pages [Prev] 1 2 3 [Next]

on the pages where there are link to go to the next page and previous page

Quote Reply
Re: Display the text Pages In reply to
Um, ok...I was just giving an example. If you want it layed out for you:

<%if next%>
Pages
<%endif%>
<%if prev%>
<%prev%>
<%endif%>
<%if next%>
<%next%>
<%endif%>

Now this will show the text Pages for you only if there is a next available.

Quote Reply
Re: Display the text Pages In reply to
Is isn't there any way to edit the nphbuild.cgi or other scripts so that it displays Pages text


Quote Reply
Re: Display the text Pages In reply to
Is it posible to say something like this:::::::

<%if Prev/Next%>



Quote Reply
Re: Display the text Pages In reply to
You can edit nph-build.cgi from sub_build_category_pages