%TOC{depth="2"}% ---++ Documentation %STARTSECTION{name="documentation" type="section"}% This function is used in the category selector's autocompletion textboxlist to return a set of matching categories given the prefix in the url param =q=. See the =classificationplugin.tmpl= template file. ---+++++ Parameters * CAT: pattern of categories to include, defaults to neutral filter; this pattern is to match the _prefix_ of the category name * LIMIT: maximum number of categories to return, defaults to 10 * THEWEB: web from which to extract category information, defaults to BASEWEB %ENDSECTION{name="documentation" type="section"}% ---++ Implementation <verbatim class="tml"> %STARTINCLUDE%%FORMATLIST{ "%HIERARCHY{ format="$name=$title|$title$n$children" web="%IF{"defined THEWEB" then="%THEWEB%" else="%BASEWEB%"}%" %IF{"defined CAT" then="include=\"^%CAT%.*\""}% matchattr="title" matchcase="off" }%" split="\n" sort="on" unique="on" separator="$n" limit="%IF{"defined LIMIT" then="%LIMIT%" else="10"}%" }%%STOPINCLUDE% </verbatim> ---++ Test <div class="alt"> <noautolink> <pre> %DBCALL{"%TOPIC%" CAT="Test"}% </pre> </noautolink> </div> %DBCALL{"Applications.RenderFunctionCallers"}% ---++ Copyright © 2006-2013 Michael Daum http://michaeldaumconsulting.com %DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}%
ApplicationTopic
edit
TopicType
DocuTopic
,
TopicFunction
TopicTitle
Summary
Returns a list of categories
WikiApplication
ClassificationApp
This topic: Applications/ClassificationApp
>
TopicType
>
TopicFunction
>
RenderKnownCats
Topic revision:
07 Jan 2013,
ProjectContributor
(raw view)
Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.