Page 1 of 1

placing the "previous page, next page" at top of

Posted: Sun Mar 19, 2006 9:39 pm
by kayjay
How can I change the position of the " « previous page (Page x of x, totaling x entries) » next page " line ?
I want to put it at the top just under the date.
Where can I find it , in what specific file?

I'm using the S9y 0.9

Kind regards,
Alex Janssen

Posted: Sun Mar 19, 2006 10:24 pm
by carl_galloway
Alex, that block of code sits at the very bottom of the entries.tpl file in your template. If you move it to the top of the page be aware it needs to be outside the {foreach} loop. I would place it between these two lines

Code: Select all

{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}

{foreach from=$entries item="dategroup"}
however you may find it becomes nearly useless to your blog visitors because they would then need to scroll to the top of the page to get to the next or previous pages in the sequence. You may be better off leaving the bottom links in place and simply copying the links into the section I mentioned above.

Posted: Sun Mar 19, 2006 10:53 pm
by kayjay
Hello Carl,

Thanks for your help.
But what if the template does not have a entries.tpl ?

Posted: Mon Mar 20, 2006 1:13 am
by carl_galloway
Ah good question, and I apologise for assuming it did.

Simply copy the entries.tpl from the default theme folder into the folder of the theme you're working on then open that and make the changes. You'll notice the change immediately from that point.

Carl

Posted: Mon Mar 20, 2006 7:43 pm
by kayjay
carl_galloway wrote:Ah good question, and I apologise for assuming it did.

Simply copy the entries.tpl from the default theme folder into the folder of the theme you're working on then open that and make the changes. You'll notice the change immediately from that point.

Carl
I Copied the entries.tpl from default to the new theme dir and enhanced it but nothing happens. Even if I totally delete the specific block it still shows up on the site

this is how it looks like:

Code: Select all

<!-- ENTRIES START -->
    {serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
   <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}

    {serendipity_hookPlugin hook="entries_footer"}     </div> 
    {foreach from=$entries item="dategroup"}
But again.. it does not change a bit :(

Posted: Mon Mar 20, 2006 8:00 pm
by kayjay
I already figured that if I change the default entries.tpl that it will work. But in the theme I can't find the spot where it points towards this file.

The same goes with opening the css. I figured that if I change the .css file I wont see a difference but if I change the css of the theme I copied and enhanced it will work.

Posted: Mon Mar 20, 2006 9:24 pm
by carl_galloway
kayjay, not sure why it isn't working for you, it does for me. Have you read the anatomy of a Serendipity theme

If that helps, great, if it doesn't, then can you post a link to your blog where we can see the theme working, perhaps there is something else that needs attention that prevents the template displaying correctly.

Cheers

Carl