BlogHarbor Home Page
FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  UsergroupsRSS   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Previous/Next Button
 
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
dissident vox



Joined: 29 Jun 2005
Posts: 23

PostPosted: Wed Mar 22, 2006 10:05 pm    Post subject: Previous/Next Button Reply with quote

Hi John, apologies if this have been asked before but I'd like to make a slight change to the blog, and I need some advice as to how to go about it.

I'd like to add a 'previous/next' text button at the bottom of the Main page, rather like Dave Winer has on Scripting News. I feel it would make navigation a tad easier, and might encourage a user to browse a little deeper. Not sure how to do it though. Your help as always is much appreciated.

Thanks
John B
Back to top
View user's profile Send private message
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Wed Mar 22, 2006 10:36 pm    Post subject: Re: Previous/Next Button Reply with quote

Since you've already enabled Paging Links to display links at the top of the page to the Next and Previous set of articles, you would simply need to alter your template to show those links at the bottom as well.

You'd need to modify your category template. Look for this code at the top of the template:

Code:
{{if category_breadcrumbs}}
<div class="articleBreadcrumb">
{{if category.prev_articles_url}}
<span style="font-weight:bold;">«</span>&nbsp;<a href="{{category.prev_articles_url}}">{{category.prev_articles_text}}</a>
{{/if}} <!-- if category.prev_articles_url -->

{{if category.next_articles_url}}
{{if category.prev_articles_url}}
&nbsp;|&nbsp;
{{/if}}

<a href="{{category.next_articles_url}}">
{{category.next_articles_text}}</a>&nbsp;»
{{/if}} <!-- if next_article.url -->

</div> <!-- articleBreadcrumb -->
{{/if}} <!-- if category_breadcrumbs -->


That creates the Next and Previous links. You would just need to duplicate it at the bottom of the template as well...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Search all BlogHarbor support resources.
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> Tips and Tricks All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum