Documentation
This method is called by
RenderCategory to display
a summary for an object. This method serves as a final fallback when no other
TopicType-specific
method was found.
Parameters
- OBJECT
- THEICON
- TITLEEXTRA
Implementation
%STARTINCLUDE%%DBQUERY{topic="%OBJECT%"
format="<div class='clsIndexItem clsTopicItem clearfix'>
%IF{"defined THEICON" then="$percntJQICON{%THEICON%}$percnt"}%<!-- -->
$percntDBCALL{\"$web.$topic->Applications.RenderTopicThumbnail\"
TYPE=\"plain\"
ALIGN=\"right\"
CROP=\"northwest\"
}$percnt<!-- -->
[[$web.$topic]]%TITLEEXTRA{default=""}%%IF{"context RedDotPluginEnabled" then="$dollarpercntREDDOT{\\"$web.$topic\\"}$dollarpercnt"}%
<div class='foswikiTopicSummary'>$expand(Summary)</div>
<div class='foswikiTopicInfo'>
<span class='foswikiRevisionDate'>$formatTime(info.date)</span>
$percntUSERINFO{\"$expand(info.author)\"
format=\"<span class='foswikiRevisionSep'>|</span> <span class='foswikiRevisionAuthor'>$dollarpercntGETTOPICTITLE{\\"$wikiusername\\"}$dollarpercnt</span>\"
}$percnt<!-- -->
$percntIF{\"'$expand(total_likes)'>0\"
then=\"<span class='foswikiRevisionSep'>|</span> <span class='clsLikeInfo'>$percntTRANSLATE{\"[quant,_1,like,likes]\" args=\"$expand(total_likes)\"}$percnt</span>\"
}$percnt<!-- -->
</div></div>"
}%%STOPINCLUDE%
Test
RenderIndexItem
Fallback to render a summary for
WikiTopic that does not have a type specific version of to render an index item
02 May 2019 - 09:18
| ProjectContributor