RenderCategories
display a list of categories in the sidebar

02 May 2019 - 20:32 | Version 1 |

Documentation

TODO

Parameters
  • CAT: top category whose subcategories are displayed, defaults to TOP

Implementation

%STARTINCLUDE%%HIERARCHY{
  web="%BASEWEB%"
  top="%IF{"'%CAT{default=""}%'!=''" then="%CAT%" else="TopCategory"}%"
  exclude="%IF{"'%CAT{default=""}%'!=''" then="%CAT%" else="TopCategory"}%"
  hidenull="on"
  depth="2"
  filter="TopicType=~'\bBlogEntry\b' AND State != 'unpublished' AND topic != 'WebTopicEditTemplate' %IF{"defined time"
   then="AND publishdate >= %URLPARAM{"time"}% AND publishdate < %DATETIME{"%URLPARAM{"time"}%" delta="in 1 month" lang="en" format="$epoch"}%"
  }%"
  header="<div class='blogSideBarSection blogCategories'>
    <h2 >%IF{"'%CAT{default=""}%'!='' and '%CAT{default=""}%'!='TopCategory'"
           then="%TRANSLATE{"[_1] categories" args="%CATINFO{cat="%CAT%" format="$title"}%"}%"
           else="%TRANSLATE{"Categories"}%"
        }%</h2>
    <div class='jqSerialPager'><ul>"
  footer="</ul></div></div>"
  subheader=""
  subfooter=""
  format="<li><a href='$url'><span class='foswikiRight'>$count</span>$icon&nbsp;$title</a></li>"
}%<!-- -->%STOPINCLUDE%

Test

Categories

Calls to 'RenderCategories'

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.