%TOC{depth="2"}% ---++ Documentation %STARTSECTION{name="documentation" type="section"}% This function is called in Category topics. See the CategoryTemplate. ---+++++ Parameters * CAT: category to be rendered, defaults to URLPARM{"catname" default="BASETOPIC"} * KEYWORDS: keywords to filter for * TAG: tags to be searching for in this category * SHOWHEADER: display anchors, defaults to off %ENDSECTION{name="documentation" type="section"}% ---++ Implementation <verbatim class="tml"> %STARTINCLUDE%<noautolink><div class='clsMakeIndexWrapper'> %MAKEINDEX{ "%HIERARCHY{ web="%BASEWEB%" top="%IF{"defined CAT" then="%CAT%" else="%URLPARAM{"catname" default="%BASETOPIC%"}%"}%" exclude="%IF{"defined CAT" then="%CAT%" else="%URLPARAM{"catname" default="%BASETOPIC%"}%"}%" depth="2" format="$trunctitle;$topic;$origweb$n" }%" cols="%IF{"defined CLASSIFICATIONPLUGIN_NRCOLS" then="%CLASSIFICATIONPLUGIN_NRCOLS%" else="3"}%" split="\n" pattern="(.*);(.*);(.*)" sort="off" format="$percntDBCALL{\"$3.$2->RenderIndexItem\" TITLE=\"$1\"}$percnt" }% %MAKEINDEX{ "%DBQUERY{ "!(TopicType=~'\bCategory\b') AND ('%IF{"defined CAT" then="%CAT%" else="%URLPARAM{"catname" default="%BASETOPIC%"}%"}%' DISTANCE topic) = 1 %FORMATLIST{"%URLPARAM{"tag" default="%IF{"defined TAG" then="%TAG%"}%"}%" header="AND" format=" Tag=~'\b$1\b' " separator="AND" }% %FORMATLIST{"%URLPARAM{"search" default="%IF{"defined KEYWORDS" then="%KEYWORDS%"}%"}%" header="AND" format=" uc(all) =~ uc('$1') " separator="AND" }% " web="%BASEWEB%" hidenull="on" format="$expand(TopicTitle or topic);$topic;$web" separator="$n" }%" cols="%IF{"defined CLASSIFICATIONPLUGIN_NRCOLS" then="%CLASSIFICATIONPLUGIN_NRCOLS%" else="3"}%" split="\n" pattern="(.*);(.*);(.*)" sort="nocase" %IF{"'%SHOWHEADER%'='on'" then="header=\"$anchors\""}% format="$percntDBCALL{\"$3.$2->RenderIndexItem\"}$percnt" }%<!-- --> </div></noautolink> <!-- -->%STOPINCLUDE% </verbatim> ---++ Toolbar <verbatim class="tml"> %STARTSECTION{"toolbar"}%<!-- --> <div class="toolbar"> %BUTTON{"New Topic" href="%SCRIPTURLPATH{view}%/%BASEWEB%/ClassifiedTopic?cat=%URLPARAM{"catname" default="%BASETOPIC%"}%%IF{ "defined TEMPLATE" then=";tmpl=%TEMPLATE%" else="$percntIF{\"istopic '%BASEWEB%.%URLPARAM{"catname" default="%BASETOPIC%"}%Template'\" then=\";tmpl=%BASEWEB%.%URLPARAM{"catname" default="%BASETOPIC%"}%Template\" else=\"\" }$percnt" }%" title="Create a new topic in %CATINFO{cat="%BASEWEB%.%URLPARAM{"catname" default="%BASETOPIC%"}%" format="<nop>$title"}%" }% %IF'%USERSWEB%.AdminGroup' allows 'change'" then="%BUTTON{"Manage" href="%SCRIPTURLPATH{view}%/%BASEWEB%/Category" title="Manage categories"}% %BUTTON{"Browse" href="%SCRIPTURLPATH{view}%/%BASEWEB%/CategoryBrowser" title="Browse the hierarchy"}%" }% </div> %CLEAR%%ENDSECTION{"toolbar"}% </verbatim> ---++ Test %DBCALL{"%TOPIC%"}% %DBCALL{"Applications.RenderFunctionCallers"}% ---++ Copyright © 2006-2013 Michael Daum http://michaeldaumconsulting.com %DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}%
ApplicationTopic
edit
TopicType
DocuTopic
,
TopicFunction
TopicTitle
Summary
Render tools to handle categories
WikiApplication
ClassificationApp
This topic: Applications/ClassificationApp
>
TopicType
>
TopicFunction
>
RenderCategory
Topic revision:
07 Jan 2013,
ProjectContributor
(raw view)
Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.