/
RenderApplicationManifest.txt
42 lines (35 loc) · 1.49 KB
/
RenderApplicationManifest.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
%META:TOPICINFO{author="ProjectContributor" comment="" date="1409330208" format="1.1" version="1"}%
%META:TOPICPARENT{name="TopicFunction"}%
---++ Parameters
* NAME: name of WikiApplication, defaults to BASEWEB
* THEWEB: web where the application is located, defaults to BASEWEB
---++ Css
%STARTSECTION{"css"}%
* twbManifestHolder
%ENDSECTION{"css"}%
---++ Implementation
<verbatim class="tml">
%STARTINCLUDE%<noautolink>
<div class="twbManifestHolder">
%DBQUERY{
"WikiApplication='%IF{"defined NAME" then="%NAME%" else="%EXTRACT{text="%BASEWEB%" pattern=".*/(.+?)$" format="$1"}%"}%'"
web="%IF{"defined THEWEB" then="%THEWEB%" else="%BASEWEB%"}%"
sort="name"
header="| *#* | *Name* | *Type* |$n"
format="| $index | [[$web.$topic][<nop>$topic]] | $formfield(TopicType) |
| | $formfield(Summary) ||"
}%
</div>
</noautolink>%STOPINCLUDE%
</verbatim>
---++ Test
%DBCALL{"%TOPIC%" NAME="WikiWorkbench" THEWEB="%WEB%"}%
%DBCALL{"RenderFunctionCallers"}%
---++ Copyright
© 2006-2014 Michael Daum http://michaeldaumconsulting.com
%DBCALL{"GnuGeneralPublicLicense" section="notice"}%
%META:FORM{name="Applications.ApplicationTopic"}%
%META:FIELD{name="TopicType" title="TopicType" value="TopicFunction"}%
%META:FIELD{name="TopicTitle" attributes="" title="<nop>TopicTitle" value=""}%
%META:FIELD{name="Summary" attributes="c" title="Summary" value="Render a list of all files making up a given application"}%
%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}%