CategoryRenderCategoryItem
Render a summary for a Category in a category index

02 May 2019 - 20:19 | Version 1 |

Documentation

This method is called by RenderCategory to display a summary for an object of type ClassifiedTopic.

Parameters
  • OBJECT
  • TITLE
  • THEWEB
  • SHOWSUBCATS: switch on/off direct subcategoriesm, defaults to on

Implementation

%STARTINCLUDE%<!-- --><noautolink>
%CATINFO{
   cat="%OBJECT%"
   web="%THEWEB{default=""}%"
   maxchildren="6"
   sortchildren="on"
   morechildren="<a href='$url' title='%TRANSLATE{"more"}%'>...</a>"
   format="<div class='clsIndexItem clsCategoryItem clearfix'>
     $icon<!-- -->
     <a href='$url'>%TITLE{default="$title"}%</a>$percntIF{
       \"'$count'>'0'\" then=\"&nbsp;($count)\"
     }$percnt<!-- -->
     $percntIF{\"'$percntENCODE{\"$summary\" type=\"entity\"}$percnt'!=''\" then=\"<div class='foswikiTopicInfo'>$summary</div>\"}$percnt<!-- -->
     %IF{"'%SHOWSUBCATS{default="on"}%'='on'" then="<div class='clsSubCategories'>$children $more</div>" else="<!-- -->"}%
   </div>"
}%</noautolink><!-- -->%STOPINCLUDE%

Test

Calls to 'CategoryRenderCategoryItem'

Copyright

© 2006-2019 Michael Daum 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 AustLII Communities? Send feedback
This website is using cookies. More info. That's Fine