Documentation
Parameters
- TYPE: the TopicType to be searched for, defaults to BASETOPIC
- FIELDS: columns of formfields to display, defaults to Topic, Summary, WikiApplication, Changed
- ROWS: number of rows to display initially, defauts to 10
- FILTER: additional filter expression (optional)
- THEWEB: web to examin, defaults to BASEWEB
- <field_name>_title: column title for the given field
Implementation
%STARTINCLUDE%<!-- -->
<noautolink>
%GRID{
query="TopicType=~'\b%TYPE{default="%BASETOPIC%"}%\b' %IF{"defined FILTER" then="AND %FILTER%"}%"
web="%THEWEB{default="%BASEWEB%"}%"
columns="%FIELDS{default="TopicTitle,Summary,WikiApplication,Changed"}%"
rows="%ROWS{default="10"}%"
filterbar="on"
toolbar="on"
rownumbers="on"
pager="on"
width="auto"
height="auto"
sort="Changed"
reverse="on"
WikiApplication_title="%MAKETEXT{"Application"}%"
TopicTitle_title="%MAKETEXT{"Title"}%"
Summary_title="%MAKETEXT{"Summary"}%"
Changed_title="%MAKETEXT{"Changed"}%"
%FORMATLIST{"%FIELDS{default="TopicTitle,Summary,WikiApplication,Changed"}%"
split="\s*,\s*"
format="$percntIF{\"defined $1_title\"
then=\"$1_title=\\"$percnt$1_title$percnt\\"\"
}$percnt"
separator="$n"
}%
}%
</noautolink>
<!-- -->%STOPINCLUDE%
Test
Calls to 'RenderTopicsOfType'
Copyright
© 2006-2013 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.