RenderDataFormList
Renders a list of DataForms that make use of the given DataFormAttribute

02 May 2019 - 19:27 | Version 1 |

Documentation

Parameters
  • ATTR: DataFormAttribute to search for, defaults to BASETOPIC
  • THEWEB: web to examin, defaults to BASEWEB

Implementation

%STARTINCLUDE%<noautolink>
%DBQUERY{
   "TopicType=~'\bDataForm\b' 
    AND text=~'\n\| *.*\b%ATTR{default="%BASETOPIC%"}%\b.* *\|'
   "
   web="%THEWEB{default="%BASEWEB%"}%"
   hidenull="on"
   header="<h2>%TRANSLATE{"<nop>DataForms that use the '[_1]' attribute" args="%ATTR{default="%BASETOPIC%"}%"}%</h2>
| *#* | *Name* | *Summary* | *Application* |$n"
   format="| $index | [[$web.$topic][$topic]] | $formfield(Summary) | $percntIF{
      \"'$formfield(WikiApplication)'='WikiWorkbench'\"
      then=\"[[Applications.WebHome][WikiWorkbench]]\"
      else=\"[[Applications.$formfield(WikiApplication).WebHome]]\"
   }$percnt |"
}%
</noautolink>%STOPINCLUDE%

Test

DataForms that use the 'Summary' attribute

# Name SummarySorted descending Application
10 TopicView Views and editors WikiWorkbench
4 DataFormAttribute Value definitions for formfields in a DataForm WikiWorkbench
9 TopicType TopicType of all TopicTypes WikiWorkbench
12 WikiApplication TopicType of a WikiApplication WikiWorkbench
11 WebTool TopicType for topics on the administrative level WikiWorkbench
5 DocuTopic Topics that contain pure documentation. WikiWorkbench
1 ApplicationLicense License for WikiApplications WikiWorkbench
6 TopicFunction Function library WikiWorkbench
3 DataForm DataForm definitions WikiWorkbench
13 WikiTopic create a normal wiki topic WikiWorkbench
8 TopicTemplate Blueprints for wiki topics WikiWorkbench
2 ApplicationTopic A topic that is part of an application WikiWorkbench
7 TopicStub A placeholder or redirect topic WikiWorkbench

Copyright

© 2006-2015 Michael Daum http://michaeldaumconsulting.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding AustLII Communities? Send feedback
This website is using cookies. More info. That's Fine