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