/
CategoryRenderIndexItem.txt
52 lines (42 loc) · 1.84 KB
/
CategoryRenderIndexItem.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
%META:TOPICINFO{author="ProjectContributor" comment="" date="1418731764" format="1.1" version="1"}%
%META:TOPICPARENT{name="TopicFunction"}%
%TOC{depth="2"}%
---++ Documentation
%STARTSECTION{name="documentation" type="section"}%
This method is called by RenderCategory to display
a summary for an object of type ClassifiedTopic.
---+++++ Parameters
* OBJECT
* TITLE
* THEWEB
%ENDSECTION{name="documentation" type="section"}%
---++ Implementation
<verbatim class="tml">
%STARTINCLUDE%<!-- --><noautolink>
%CATINFO{
cat="%OBJECT%"
web="%THEWEB{default=""}%"
maxchildren="6"
sortchildren="on"
morechildren="<a href='$url' title='%MAKETEXT{"more"}%'>...</a>"
format="<div class='clsIndexItem clsCategoryItem clearfix'>
$icon<!-- -->
<a href='$url'>%IF{"defined TITLE" then="%TITLE%" else="$title"}%</a>$percntIF{
\"'$count'>'0'\" then=\" ($count)\"
}$percnt<!-- -->
$percntIF{\"'$percntENCODE{\"$summary\" type=\"entity\"}$percnt'!=''\" then=\"<div class='foswikiTopicInfo'>$summary</div>\"}$percnt<!-- -->
<div class='clsSubCategories'>$children $more</div>
</div>"
}%</noautolink><!-- -->%STOPINCLUDE%
</verbatim>
---++ Test
%DBCALL{"%TOPIC%" OBJECT="IntranetDirectory"}%
%DBCALL{"Applications.RenderFunctionCallers"}%
---++ Copyright
© 2007-2014 Michael Daum http://michaeldaumconsulting.com
%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}%
%META:FORM{name="Applications.ApplicationTopic"}%
%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction, WikiTopic"}%
%META:FIELD{name="TopicTitle" attributes="" title="<nop>TopicTitle" value=""}%
%META:FIELD{name="Summary" attributes="c" title="Summary" value="Render a summary for a Category in a category index"}%
%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="ClassificationApp"}%