%META:TOPICINFO{author="TWikiContributor" date="1206982559" format="1.1" reprev="1.2" version="$Rev$"}%
%META:TOPICPARENT{name="TopicFunction"}%
---+!! Function: %TOPIC%
%FORMFIELD{"Summary"}%
%TOC{depth="2"}%
---++ Documentation
%STARTSECTION{name="documentation" type="section"}%
%RED%TODO%ENDCOLOR%
---+++++ Parameters
* APP: name of the application/web
%ENDSECTION{name="documentation" type="section"}%
---++ Implementation
[[TopicTypes]]
$n"
~~~ web="%BASEWEB%"
~~~ hidenull="on"
~~~ format=" 1 [[$web.$topic][$topic]]: $expand(Summary or TopicTitle)"
~~~ }%
%~~ DBQUERY{"TopicType=~'\bTWikiForm\b' AND !(TopicType=~'\bTopicType\b')
~~~ AND TWikiApplication='%APP%'"
~~~ remote="on"
~~~ header="[[TWikiForms]]
$n"
~~~ web="%BASEWEB%"
~~~ hidenull="on"
~~~ format=" 1 [[$web.$topic][$topic]]: $expand(Summary or TopicTitle)"
~~~ }%
%~~ DBQUERY{"TopicType=~'\bTWikiFormAttribute\b'
~~~ AND TWikiApplication='%APP%'"
~~~ remote="on"
~~~ header="[[TWikiFormAttributes]]
$n"
~~~ web="%BASEWEB%"
~~~ hidenull="on"
~~~ format=" 1 [[$web.$topic][$topic]]: $expand(Summary or TopicTitle)"
~~~ }%
%~~ DBQUERY{"TopicType=~'\bTopicTemplate\b' AND TWikiApplication='%APP%'"
~~~ remote="on"
~~~ web="%BASEWEB%"
~~~ hidenull="on"
~~~ header="[[TopicTemplates]]
$n"
~~~ format=" 1 [[$web.$topic][$topic]]: $expand(Summary or TopicTitle)"
~~~ }%
%~~ DBQUERY{"TopicType=~'\bTopicFunction\b' AND TWikiApplication='%APP%'"
~~~ remote="on"
~~~ web="%BASEWEB%"
~~~ hidenull="on"
~~~ header="[[TopicFunctions]]
$n"
~~~ format=" 1 [[$web.$topic][$topic]]: $expand(Summary or TopicTitle)"
~~~ }%
%~~ DBQUERY{"TopicType=~'\bTopicView\b' AND TWikiApplication='%APP%'"
~~~ remote="on"
~~~ web="%BASEWEB%"
~~~ hidenull="on"
~~~ header="[[TopicViews]]
$n"
~~~ format=" 1 [[$web.$topic][$topic]]: $expand(Summary or TopicTitle)"
~~~ }%
%~~ DBQUERY{
~~~ "TopicType=~'\bApplicationTopic\b'
~~~ AND !(TopicType=~'\b(TopicType|TWikiForm|TopicTemplate|TopicFunction|TopicView|WebTool)\b')
~~~ AND TWikiApplication='%APP%'"
~~~ remote="on"
~~~ header="Other [[ApplicationTopics]]
$n"
~~~ web="%BASEWEB%"
~~~ hidenull="on"
~~~ format=" 1 [[$web.$topic][$topic]]: $expand(Summary or TopicTitle)"
~~~ }%
%~~ DBQUERY{"TopicType=~'\bWebTool\b' AND TWikiApplication='%APP%'"
~~~ remote="on"
~~~ web="%BASEWEB%"
~~~ hidenull="on"
~~~ header="[[WebTools]]
$n"
~~~ format=" 1 [[$web.$topic][$topic]]: $expand(Summary or TopicTitle)"
~~~ }%