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

02 May 2019 - 10:32 | 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 © 2002-2024 by contributors to Wasserstoff-Fahrer Forum ImpressumDatenschutz  Feedback
This website is using cookies. More info. That's Fine