CategoryRenderIndexItem
Render a summary for Categories

02 May 2019 - 10:19 | Version 1 |

Documentation

This method is called by RenderCategory to display a summary for an object listed within the Category topic.

Parameters
  • OBJECT

Implementation

%STARTINCLUDE%<div class='clsIndexItem clsCategoryItem clearfix'>
%CATINFO{ 
   %DBQUERY{topic="%OBJECT%" format="cat=\"$topic\" web=\"$web\""}%
   format="$icon<!-- --> 
     <a href='$url'>%TITLE{default="$title"}%</a>
     %IF{"context RedDotPluginEnabled" then="$dollarpercntREDDOT{\\"$web.$topic\\"}$dollarpercnt"}%<!-- -->
     $percntIF{\"'$percntENCODE{\"$summary\" type=\"entity\"}$percnt'!=''\" then=\"<div class='foswikiTopicSummary'>$summary</div>\"}$percnt"
 }%%DBQUERY{topic="%OBJECT%"
   format="<div class='foswikiTopicInfo'> 
       <!-- -->$formatTime(info.date) 
       <!-- -->$percntUSERINFO{\"$expand(info.author)\"
         format=\"<span class='foswikiRevisionSep'>&#124;</span> <nop>$dollarpercntGETTOPICTITLE{\\"$wikiusername\\"}$dollarpercnt\"
       }$percnt
     </div>"
}%
</div>%STOPINCLUDE%

Test

TestCategory Eleven
02 May 2019

Calls to 'CategoryRenderIndexItem'

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