CategoryViewTemplate
View for Categories

28 January 2025 - 12:42 | Version 1 |

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

%TMPL:INCLUDE{"Applications.ClassificationApp.PaginationBase"}%

%TMPL:DEF{"pagination::enabled"}%'%DISPLAYPAGINATION{default="on"}%'='on' and TopicType=~'\bCategorizedTopic\b'%TMPL:END%
%TMPL:DEF{"pagination::query::exclude"}% AND topic!='TopCategory' AND topic!='BottomCategory'%TMPL:END%
%TMPL:DEF{"pagination::order"}%Order,translate(topictitle)%TMPL:END%

%TMPL:DEF{"uploaderenabled"}%%CATEGORY_UPLOADERENABLED{default="on"}%%TMPL:END%

%TMPL:DEF{"javascript"}%%IF{"'%TMPL:P{"uploaderenabled"}%'!='on'"
   then="$percntSET{\"TOPICINTERACTION_UPLOADERENABLED\" value=\"off\"}$percnt"
}%%TMPL:PREV%%TMPL:END%

%TMPL:DEF{"breadcrumbs::contents"}%%DBCALL{
  "Applications.ClassificationApp.RenderCategoryBreadcrumbs"
  CAT="%URLPARAM{"catname" default="%TOPIC%"}%"
  SEP="%TMPL:P{"sep"}%"
}%%TMPL:END%

%TMPL:DEF{"topicinfo::prefix"}%%CATINFO{
   cat="%URLPARAM{"catname" default="%BASETOPIC%"}%"
   format="<div class='foswikiTopicPrefix'>$icon</div>"
}%%TMPL:END%

%TMPL:DEF{"topicinfo::title"}%%IF{"$'URLPARAM{catname}'=''"
  then="$percntTMPL:P{\"topicinfo::title::default\"}$percnt"
  else="$percntTMPL:P{\"topicinfo::title::urlparam\"}$percnt"
}%%TMPL:END%

%TMPL:DEF{"topicinfo::title::urlparam"}%%CATINFO{
  cat="%URLPARAM{"catname" default="%BASETOPIC%"}%" 
  format="$title"
}%%TMPL:P{"topicinfo::extra"}%%TMPL:END%

%TMPL:DEF{"topicinfo::title::default"}%%RENDERFORDISPLAY{
   fields="%TMPL:P{"topicinfo::fields"}%"
   editable="%TMPL:P{"topicinfo::editable"}%"
   excludeattr=""
   hideempty="on"
   header=""
   footer=""
   TopicTitle_default="%TOPICTITLE{encode="entity"}%"
   TopicTitle_format="<div class='$name'><span itemprop='name' class='inlineEditValue' data-formfield='$name' data-default='$default' data-format='$edit'><a href='%SCRIPTURLPATH{"view" topic="%WEB%.%TOPIC%"}%'>$percntTRANSLATE{\"$value\"}$percnt</a> $editicon</span> $percntTMPL:P{\"topicinfo::extra\"}$percnt</div>"
   Summary_format="<div class='$name'><div class='foswikiTopicSummary inlineEditValue' data-formfield='$name' data-format='$edit'>$percntTRANSLATE{\"$value\"}$percnt $editicon</div></div>"
}%%TMPL:END%

%TMPL:DEF{"revinfo::impl"}%<div class='foswikiRevision'><noautolink>%CATINFO{
  cat="%URLPARAM{"catname" default="%BASETOPIC%"}%" 
  format="$percntFORMATLIST{\"$parentlinks\" 
         split=\"\s*,\s*\" 
         separator=\"&#44; \" 
         header=\"%JQICON{"fa-share fa-rotate-270"}% \"
      }$percnt"
}%%RENDERFORDISPLAY{
   fields="ResponsiblePerson, Tag"
   header=" <span class='inlineEditor' data-active-class='inlineEditActive alt'>"
   footer="</span>"
   separator="  " 
   Tag_default="untagged"
   Tag_format="<span><span class='inlineEditValue' data-view-def='renderForDisplay::formfield' data-formfield='$name'>%TMPL:P{"format::Tag"}%</span></span>"
   ResponsiblePerson_format="<span><span class='inlineEditValue' data-view-def='renderForDisplay::formfield' data-formfield='$name'>%TMPL:P{"format::ResponsiblePerson"}%</span></span>"
   hideempty="on"
   editable="on"
}%%TMPL:P{"revinfo::more"}%%JQREQUIRE{"ui, limitlist"}%</noautolink></div>%TMPL:END%

%TMPL:DEF{"title"}%%HTMLTITLE{
  separator=" %HTMLTITLESEP{default="-"}% "
  title="%TMPL:P{"categorytitle"}%"
  translate="%TMPL:P{"title::translate"}%"
}%%TMPL:END%

%TMPL:DEF{"metatitle::content"}%%TMPL:P{"categorytitle"}%%TMPL:END%

%TMPL:DEF{"categorytitle"}%%IF{"defined catname"
  then="$percntCATINFO{cat=\"%URLPARAM{"catname"}%\" format=\"$title\"}$percnt"
  else="%TOPICTITLE%"
}%%TMPL:END%

%TMPL:DEF{"renderForDisplay::formfield"}%%RENDERFORDISPLAY{
   editable="on"
   field="%URLPARAM{"formfield"}%"
   Tag_default="untagged"
   hideempty="on"
   format="%TMPL:P{
            "format::%URLPARAM{"formfield"}%"
          }%"
}%%TMPL:END%

%TMPL:DEF{"format::Tag"}%$percntIF{\"'$percntENCODE{\"$origvalue\"}$percnt'='untagged'\" 
   then=\"<span class='isEmpty'>$percntTMPL:P{\"revinfo::sep\"}$percnt $percntJQICON{\"fa-tag\"}$percnt _%TRANSLATE{"untagged"}%_ \"
   else=\"<span>$percntTMPL:P{\"revinfo::sep\"}$percnt $percntJQICON{\"fa-tag\"}$percnt $value \"
}$percnt $editicon</span>%TMPL:END%

%TMPL:DEF{"format::ResponsiblePerson"}%%TMPL:P{"revinfo::sep"}% %JQICON{"ma-person"}% $value $editicon%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 arbeitsgruppe.ch? Send feedback