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_PREFIX: optional string put before the topic title. see RenderWikiTopicView
- TITLE_EXTRA: optional addition to the topic title. see RenderWikiTopicView
- TITLE_FIELDS: fields that make up the title aera, defaults to TopicTitle, Summary
- DISPLAYREVISIONINFO: boolean flag to switch on/off revinfo
- EDITABLE: boolean flag switching on/off inline editing, defaults to on
Implementation
%STARTINCLUDE%<noautolink>%DBCALL{
"Applications.RenderWikiTopicView"
section="title"
OBJECT="%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%"
}%%IF{"'%DISPLAYREVISIONINFO{default="on"}%'='on'"
then="<span class='foswikiRevision'>$percntDBCALL{
\"%WEB%.%TOPIC%\"
OBJECT=\"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%\"
section=\"revinfo\"
}$percnt</span>"
}%</noautolink>%DEPRECATED%%STOPINCLUDE%
Revision Info (readonly)
%STARTSECTION{"revinfo::readonly"}%%DBCALL{"Applications.RenderWikiTopicView" OBJECT="%OBJECT%" section="revinfo"}%
%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"}% <span class='jqLimitList' data-max='30'>"
format="<a href='$url' rel='tag' itemprop='keywords' class='$class'><noautolink>$name</noautolink></a>"
footer="</span>"
}%%JQREQUIRE{"ui, limitlist"}%%DEPRECATED%%ENDSECTION{"revinfo::readonly"}%
Revision Info (editable)
%STARTSECTION{"revinfo"}%%DBCALL{"Applications.RenderWikiTopicView" OBJECT="%OBJECT%" section="revinfo"}%
%RENDERFORDISPLAY{
topic="%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%"
fields="Category, Tag"
editable="%EDITABLE{default="on"}%"
hideempty="on"
header="<span class='inlineEditor'>"
Category_format="<span class='foswikiRevisionSep'>|</span> <span>$percntJQICON{\"fa-folder\"}$percnt <span class='inlineEditValue' data-formfield='$name'>$value $editicon</span></span>"
Tag_format="<span class='foswikiRevisionSep'>|</span> <span>$percntJQICON{\"fa-tag\"}$percnt <span class='inlineEditValue' data-formfield='$name'>$value $editicon</span></span>"
separator=" "
footer="</span>"
}%%JQREQUIRE{"ui, limitlist"}%%DEPRECATED%%ENDSECTION{"revinfo"}%
Test
ERROR: DBCALL can't find topic
%DBCALL{"Applications/ClassificationApp.RenderClassifiedTopicView" OBJECT="
Test
ERROR: DBCALL can't find topic
%DBCALL{"Applications/ClassificationApp.RenderClassifiedTopicView" OBJECT="