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

02 May 2019 - 09: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 ascending Application
2 ApplicationTopic a part of an application WikiWorkbench
13 WikiTopic a base topic for wiki content WikiWorkbench
12 WikiApplication a documentation topic for a wiki application WikiWorkbench
1 ApplicationLicense a license for wiki applications WikiWorkbench
7 TopicStub a placeholder topic pointing to another one WikiWorkbench
11 WebTool a special page used to manage a web WikiWorkbench
10 TopicView a topic view or edit template WikiWorkbench
5 DocuTopic application documentation WikiWorkbench
3 DataForm form definition for structured wiki content WikiWorkbench
6 TopicFunction Function library WikiWorkbench
8 TopicTemplate templates for wiki topics WikiWorkbench
9 TopicType TopicType of all TopicTypes WikiWorkbench
4 DataFormAttribute value definition for formfields in a DataForm 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 © 2002-2025 by contributors to Wasserstoff-Fahrer Forum ImpressumDatenschutz  Feedback
This website is using cookies. More info. That's Fine