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
placing the "previous page, next page" at top of
-
carl_galloway
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
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
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.
Code: Select all
{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
{foreach from=$entries item="dategroup"}
-
carl_galloway
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
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 sitecarl_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
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"}
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.
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.
-
carl_galloway
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
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
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