Another one of the standard roller weblogger functions I replaced: the next / previous function. Basically I just wanted this to be a little more informative, and host it as a menu list in the sidebar.
Here's a couple of examples:
- » Reading the main site
- » From Roller Weblogger Related Entries and Blog Post code
- » To: links for 2008-11-26
- » Forward: Next page
and
- » Reading Integrating Disqus and Roller Weblogger on blogs.sun.com
- » Backward: links for 2008-09-06
- » Forward: Setting up del.icio....
- » Return to main site.
And here's the code (don't forget to change the blog handle from 'eclectic'):
#if ($model.results)
- » Currently viewing search results...
#else
#if($model.permalink)
- » Reading $model.weblogEntry.title
#if ($pager.prevLink)
- » Backward: $pager.prevName
#end
#if ($pager.prevCollectionLink)
- » Backward: $pager.prevCollectionName
#end
#if ($pager.nextLink)
- » Forward: $pager.nextName
#end
#if ($pager.nextCollectionLink)
- » Forward: $pager.nextCollectionName
#end
- » Return to main site.
#elseif($model.weblogCategory)
- » Reading entries related to the "$model.weblogCategory.name" category
- » From $entryFirst.title
- » To: $entryLast.title
#if ($pager.prevLink)
- » Backward: $pager.prevName
#end
#if ($pager.prevCollectionLink)
- » Backward: $pager.prevCollectionName
#end
#if ($pager.nextLink)
- » Forward: $pager.nextName
#end
#if ($pager.nextCollectionLink)
- » Forward: $pager.nextCollectionName
#end
- » Return to main site.
#else
- » Reading the main site
- » From $entryFirst.title
- » To: $entryLast.title
#if ($pager.prevLink)
- » Backward: $pager.prevName
#end
#if ($pager.prevCollectionLink)
- » Backward: $pager.prevCollectionName
#end
#if ($pager.nextLink)
- » Forward: $pager.nextName
#end
#if ($pager.nextCollectionLink)
- » Forward: $pager.nextCollectionName
#end
#end
#end