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%IF{"defined ATTR" then="%ATTR%" else="%BASETOPIC%"}%\b.* *\|'
   "
   web="%IF{"defined THEWEB" then="%THEWEB%" else="%BASEWEB%"}%"
   hidenull="on"
   header="<h2>%MAKETEXT{"<nop>DataForms that use the '[_1]' attribute" args="%IF{"defined ATTR" then="%ATTR%" else="%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 ApplicationTopic A topic that is part of an application WikiWorkbench
2 TopicStub A placeholder or redirect topic WikiWorkbench
3 TopicType TopicType of all TopicTypes WikiWorkbench
4 WikiApplication TopicType of a WikiApplication WikiWorkbench
5 WikiTopic A normal topic for Foswiki WikiWorkbench

Topic revision: r1 - 11 Apr 2013, micha
 

Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.