Documentation
This function renders a view for a wiki topic,
showing its title and the summary line.
Parameters
- TITLE_EXTRA: optional addition put behind the topic title
Implementation
%STARTINCLUDE%<!-- -->
%IF{"'%BASEWEB%.%BASETOPIC%'/text=~'\-\-\-\+[^\+]'"
else="$percntDBCALL{\"%WEB%.%TOPIC%\" section=\"title\"}$percnt"
}%<!-- -->%STOPINCLUDE%
Render title
%STARTSECTION{"title"}%<noautolink>
%DBQUERY{topic="%BASEWEB%.%BASETOPIC%"
format="<h1 >[[$web.$topic][$expand(topictitle)]] %IF{"defined 'TITLE_EXTRA'" then="<span class='foswikiTopicExtra'>%TITLE_EXTRA%</span>"}% $expand('<br /><span class=\"foswikiTopicSummary\">' and Summary and '</span>')</h1>"
}%</noautolink>
%ENDSECTION{"title"}%
Test
Calls to 'RenderWikiTopicView'
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.