ClassifiedTopicViewTemplate
Display a classified topic

02 May 2019 - 20:19 | Version 1 |

%{
}%
%TMPL:INCLUDE{"Applications.WikiTopicView"}%
%{
}%

%{
}%
%TMPL:DEF{"beforetext"}%%IF{
   "$'DISPLAYTOPICTITLE'!='off'"
   then="$percntTMPL:P{\"beforetext::title\"}$percnt"
}%%TMPL:P{"qualitychecks"}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"beforetext::title"}%<div class="foswikiTopicInfo">
%DBCALL{"%WEB%.%TOPIC%->RenderClassifiedTopicView"
   TITLE_EXTRA="%TMPL:P{"titleextra"}%" 
   TITLE_PREFIX="%TMPL:P{"titleicon"}%"  
}%
</div>%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"qualitychecks"}%%IF{
  "context authenticated and ($'ENABLEQUALITYCHECK'='on' or $'ENABLEQUALITYCHECK'=~'\btags\b')" 
  then="$percntTMPL:P{\"qualitycheck::tags\"}$percnt"
}%%IF{
  "context authenticated and ($'ENABLEQUALITYCHECK'='on' or $'ENABLEQUALITYCHECK'=~'\bcats\b')" 
  then="$percntTMPL:P{\"qualitycheck::cats\"}$percnt"
}%%IF{
  "context authenticated and ($'ENABLEQUALITYCHECK'='on' or $'ENABLEQUALITYCHECK'=~'\bh1\b')" 
  then="$percntTMPL:P{\"qualitycheck::h1\"}$percnt"
}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"breadcrumbs::contents"}%%IF{
  "not defined CLASSIFICATIONPLUGIN_CATEGORYBREADCRUMBS or $CLASSIFICATIONPLUGIN_CATEGORYBREADCRUMBS='on'" 
  then="$percntTMPL:P{\"breadcrumbs::catinfo\"}$percnt" 
  else="$percntTMPL:P{\"breadcrumbs::default\"}$percnt" 
}%%TMPL:P{"breadcrumbs::tail"}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"breadcrumbs::default"}%%BREADCRUMBS{separator="%TMPL:P{"sep"}%"}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"breadcrumbs::catinfo"}%%CATINFO{
  topic="%BASEWEB%.%BASETOPIC%"
  header="$percntBREADCRUMBS{recurse=\"topicoff\" separator=\"%TMPL:P{"sep"}%\"}$percnt%TMPL:P{"sep"}%" 
  format="$breadcrumb" 
  separator="%TMPL:P{"sep"}% "
  exclude="TopCategory"
  null="$percntTMPL:P{\"breadcrumbs::default\"}$percnt"
}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"qualitycheck::tags"}%%IF{
  "'%BASEWEB%.%BASETOPIC%'/TopicType=~'TaggedTopic' and '%BASEWEB%.%BASETOPIC%'/Tag=''" 
  then="<p class='foswikiWarningMessage foswikiHideOnPrint'>%TMPL:P{"qualitycheck::tags::message"}%</p>" 
}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"qualitycheck::tags::message"}%%TRANSLATE{"This page needs tagging. Please add keywords describing what this page is about." lexicon="%CONTENT_LEXICON{default="Applications.ClassificationApp.WebLexicon"}%"}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"qualitycheck::cats"}%%IF{
  "'%BASEWEB%.%BASETOPIC%'/TopicType=~'CategorizedTopic' and '%BASEWEB%.%BASETOPIC%'/Category=''" 
  then="<p class='foswikiWarningMessage foswikiHideOnPrint'>%TMPL:P{"qualitycheck::cats::message"}%</p>" 
}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"qualitycheck::cats::message"}%%TRANSLATE{"This page needs to be categorized. Please file it to an appropriate category." lexicon="%CONTENT_LEXICON{default="Applications.ClassificationApp.WebLexicon"}%"}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"qualitycheck::h1"}%%IF{
  "'%BASEWEB%.%BASETOPIC%'/text=~'<h1' or '%BASEWEB%.%BASETOPIC%'/text=~'(^|\n)---\+[^\+#]'" 
  then="<p class='foswikiWarningMessage foswikiHideOnPrint'>%TMPL:P{"qualitycheck::h1::message"}%</p>" 
}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"qualitycheck::h1::message"}%%TRANSLATE{"Multiple heading 1 detected. Please only use heading 2, 3, ... inside the content area." lexicon="%CONTENT_LEXICON{default="Applications.ClassificationApp.WebLexicon"}%"}%%TMPL:END%
%{
}%

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding AustLII Communities? Send feedback
This website is using cookies. More info. That's Fine