Documentation
This function renders a view for a classified topic,
showing its category and tagging info in the top.
Parameters
- OBJECT: the topic to render the view for, defaults to
%BASEWEB%.%BASETOPIC%
- TITLE_EXTRA: optional addition to the topic title. see RenderWikiTopicView
- DISPLAYREVISIONINFO: boolean flag to switch on/off revinfo
Implementation
%STARTINCLUDE%<!-- -->
%DBCALL{"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%->Applications.RenderWikiTopicView" TITLE_EXTRA="%TITLE_EXTRA%"}%
%IF{"'%DISPLAYREVISIONINFO{default="on"}%'='on'"
then="$percntDBCALL{\"%WEB%.%TOPIC%\" OBJECT=\"%OBJECT%\" section=\"revinfo\"}$percnt"
}%<!-- -->%STOPINCLUDE%
Revision Info
%STARTSECTION{"revinfo"}%<span class='foswikiRevision'>
%CATINFO{
"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%"
exclude="TopCategory"
header=" <span class='foswikiRevisionSep'>|</span> %JQICON{"fa-folder"}% "
format="<a href='$origurl' rel='tag' itemprop='keywords' class='$name'><noautolink>$title</noautolink></a>"
}%%TAGINFO{
"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%"
header=" <span class='foswikiRevisionSep'>|</span> %JQICON{"fa-tag"}% "
format="<a href='$url' rel='tag' itemprop='keywords' class='$class'><noautolink>$name</noautolink></a>"
limit="30"
footer="$percntIF{\"$count > $index\"
then=\"<span class='clsTopicInfoMoreContainer'> …
<a href='#' class='clsTopicInfoMore' title='%TRANSLATE{"Show all tags"}%'>%TRANSLATE{"more"}%</a>
</span>\"
}$percnt"
}%</span>%JQREQUIRE{"ui"}%%ADDTOZONE{
"script"
requires="JQUERYPLUGIN, JQUERYPLUGIN::UI"
text="<script type='text/javascript' src='%PUBURLPATH%/%SYSTEMWEB%/ClassificationPlugin/jquery.classifiedtopic.js'></script>"
id="CLASSIFICATIONPLUGIN::JS"
}%%ENDSECTION{"revinfo"}%
Test
Calls to 'RenderClassifiedTopicView'
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.