RenderBlogEntryPagination
renders a navigation to link to the prev and next posting on the timeline

%REVINFO{ " $date - $hour:$min " rev=" IF{ "%NATMAXREV%!=%CURREV%" then="%CURREV%" }: Syntax error in '%NATMAXREV%!=%CURREV%' at '%NATMAXREV%!=%CURREV%' " topic="Applications/BlogApp.RenderBlogEntryPagination" }% | Version 1 |

Documentation

Parameters
  • CLASS: to be added to the container
  • THEWEB: web to search for blog entries, default BASEWEB

Implementation

%STARTINCLUDE%<!-- --><noautolink>
<div class="blogPagination foswikiSmallish foswikiHideOnPrint clearfix %CLASS{default=""}%">
%DBPREV{
  web="%THEWEB{default="%BASEWEB%"}%"
  search="TopicType=~'\bBlogEntry\b' AND State != 'unpublished' AND topic != 'WebTopicEditTemplate'" 
  order="publishdate"
  reverse="on"
  format="<div class='blogPrev'>[[$web.$topic]]</div>"
}%%DBNEXT{
   web="%THEWEB{default="%BASEWEB%"}%"
   search="TopicType=~'\bBlogEntry\b' AND State != 'unpublished' AND topic != 'WebTopicEditTemplate'" 
   order="publishdate"
   reverse="on"
   format="<div class='blogNext'>[[$web.$topic]]</div>"
}%<!-- --> 
</div>
</noautolink><!-- -->%STOPINCLUDE%

Test

Calls to 'RenderBlogEntryPagination'

Copyright

© 2005-2019 http://michaeldaumconsulting.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback