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

11 February 2025 - 08:48 | 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
4 DataFormAttribute value definition for formfields in a DataForm WikiWorkbench
9 TopicType TopicType of all TopicTypes WikiWorkbench
8 TopicTemplate templates for wiki topics WikiWorkbench
6 TopicFunction Function library WikiWorkbench
3 DataForm form definition for structured wiki content WikiWorkbench
5 DocuTopic application documentation WikiWorkbench
10 TopicView a topic view or edit template WikiWorkbench
11 WebTool a special page used to manage a web WikiWorkbench
7 TopicStub a placeholder topic pointing to another one WikiWorkbench
1 ApplicationLicense a license for wiki applications WikiWorkbench
12 WikiApplication a documentation topic for a wiki application WikiWorkbench
13 WikiTopic a base topic for wiki content WikiWorkbench
2 ApplicationTopic a part of an application WikiWorkbench

Copyright

© 2006-2019 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 Middle Fork Home Wiki? Send feedback
Syndicate this site RSS