Hello!
Is there a way to replace "next page" and "previous page" with all my pages(1,2,3...40..) that I have
to give user a chance "jump" between pages? (sorry for broke english)
All my pages instead of "next page - previous page"
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: All my pages instead of "next page - previous page&
Hi!
Yes, this should be possible. Edit your entries.tpl template file and search for something like this (depends on your theme):
replace that with:
HTH,
Garvin
Yes, this should be possible. Edit your entries.tpl template file and search for something like this (depends on your theme):
Code: Select all
<div class='serendipity_entryFooter' style="text-align: center">
{if $footer_prev_page}
<a href="{$footer_prev_page}">« {$CONST.PREVIOUS_PAGE}</a>
{/if}
{if $footer_info}
({$footer_info})
{/if}
{if $footer_next_page}
<a href="{$footer_next_page}">» {$CONST.NEXT_PAGE}</a>
{/if}
Code: Select all
<div class='serendipity_entryFooter' style="text-align: center">
{section name=i loop=$footer_totalPages}
{if $smarty.section.i.index > 0}
<a href="{$footer_pageLink|@sprintf:$smarty.section.i.index}">{$smarty.section.i.index}</a>
{/if}
{/section}
</div>
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
carl_galloway
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
hmmm, works perfectly, can we also list only 10 pages, and then provide a link to the next ten or previous ten?
EDIT: I thought I might try to figure out this for myself, but then ran into this thread on the smarty forums. Turns out using smarty to do what I want to do leads to preformnace problems, but I know Serendipity will have some way of doing this at the php layer and then feeding the results to the smarty
, even if it can only work on v1.1 it would still be really cool...
EDIT: I thought I might try to figure out this for myself, but then ran into this thread on the smarty forums. Turns out using smarty to do what I want to do leads to preformnace problems, but I know Serendipity will have some way of doing this at the php layer and then feeding the results to the smarty