You are here:
Foswiki
>
Applications/ClassificationApp Web
>
TopicType
>
TopicFunction
>
RenderAllCategories
E
dit
A
ttach
Tags:
create new tag
,
view all tags
%TOC{depth="2"}% ---++ Documentation %STARTSECTION{name="documentation" type="section"}% Renders an index of all known categories, top categories first. ---+++++ Parameters * NONE %ENDSECTION{name="documentation" type="section"}% ---++ Implementation <verbatim class="tml"> %STARTINCLUDE%<!-- render all categories --> <noautolink> %MAKEINDEX{ "%HIERARCHY{ web="%BASEWEB%" top="TopCategory" exclude="TopCategory" depth="2" format="$title;$topic;$origweb$n" }%" cols="%IF{"defined CLASSIFICATIONPLUGIN_NRCOLS" then="%CLASSIFICATIONPLUGIN_NRCOLS%" else="3"}%" header="<h2>Top categories</h2> There $percntIF{\"'$count'='1'\" then=\" is one top category \" else=\" are $count top categories \" }$percnt in this web." split="\n" pattern="(.*);(.*);(.*)" unique="on" format="$percntDBCALL{\"$3.$2->RenderIndexItem\"}$percnt" }% %MAKEINDEX{" "%HIERARCHY{ web="%BASEWEB%" top="TopCategory" exclude="TopCategory" mindepth="1" format="$title;$topic;$origweb$n$children" }%" cols="%IF{"defined CLASSIFICATIONPLUGIN_NRCOLS" then="%CLASSIFICATIONPLUGIN_NRCOLS%" else="3"}%" header="<h2>List of all child categories</h2> There $percntIF{\"'$count'='1'\" then=\" is one child category \" else=\" are $count child categories \" }$percnt in this web." split="\n" unique="on" pattern="(.*);(.*);(.*)" format="$percntDBCALL{\"$3.$2->RenderIndexItem\"}$percnt" }% </noautolink> <!-- //render all categories -->%STOPINCLUDE% </verbatim> ---++ Test <div class="alt"> %DBCALL{"%TOPIC%"}% </div> %DBCALL{"Applications.RenderFunctionCallers"}% ---++ Copyright © 2008-2013 Michael Daum http://michaeldaumconsulting.com %DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}%
ApplicationTopic
edit
TopicType
DocuTopic
,
TopicFunction
TopicTitle
RenderAllCategories
Summary
Renders an overview of all known categories
WikiApplication
ClassificationApp
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 07 Jan 2013,
ProjectContributor
Applications/ClassificationApp
Warning: Can't find topic Applications/ClassificationApp.WebLeftBarExample
Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.