CategoryViewTemplate
special category view for blogs

28 January 2025 - 14:54 | Version 1 |

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

%TMPL:DEF{"pagination::enabled"}%0%TMPL:END%

%TMPL:DEF{"banner::content::title"}%%CATINFO{cat="%URLPARAM{"catname" default="%BASETOPIC%"}%" 
   format="<div class='natBannerTitle'>$icon $title</div>
           <div class='natBannerSubtitle'>$summary %IF{"defined time" then="%DATETIME{"%URLPARAM{"time"}%" format="$mon $year"}%"}%</div>"
}%%TMPL:END%

%TMPL:DEF{"topicinfo"}%%IF{"'%NATSKIN_BANNERCONTENT{default=""}%'!='title'"
   then="$percntTMPL:P{\"topicinfo::title\"}$percnt"
}%%TMPL:END%

%TMPL:DEF{"topicinfo::title"}%%CATINFO{cat="%URLPARAM{"catname" default="%BASETOPIC%"}%"
   exclude="TopCategory"
   format="<noautolink>
         <div class='foswikiTopicInfo'>
            <h1>$icon $title$percntTMPL:P{\"topicinfo::extra\"}$percnt
                <div class='foswikiTopicSummary'>$summary</div>
            </h1>
         </div></noautolink>"
}%%TMPL:END%

%TMPL:DEF{"topicinfo::extra"}%%IF{"defined time"
  then=", <span class='foswikiTopicExtra'>%DATETIME{"%URLPARAM{"time"}%" format="$mon $year"}%</span>"
}%%TMPL:END%

%TMPL:DEF{"content"}%%TMPL:P{"beforetext"}%
%DBCALL{
  "Applications.BlogApp.RenderBlogEntries"
   CAT="%URLPARAM{"catname" default="%BASETOPIC%"}%"
   STICKY="%IF{"$'URLPARAM{skip}'" then="disabled" else="category"}%"
   NOSTICKY=""
   FROM_TIME="%URLPARAM{"time"}%"
   TO_TIME="%IF{"defined time" then="%DATETIME{"%URLPARAM{"time"}%" delta="in 1 month" lang="en" format="$epoch"}%"}%"
}%<!-- -->
%DBCALL{
  "Applications.BlogApp.RenderBlogEntries"
  CAT="%URLPARAM{"catname" default="%BASETOPIC%"}%"
  LIMIT="%URLPARAM{"limit" default="5"}%"
  SKIP="%URLPARAM{"skip" default="0"}%"
  NOSTICKY="category"
  STICKY=""
  FROM_TIME="%URLPARAM{"time"}%"
  TO_TIME="%IF{"defined time" then="%DATETIME{"%URLPARAM{"time"}%" delta="in 1 month" lang="en" format="$epoch"}%"}%"
}%<!-- -->
%TMPL:P{"aftertext"}%%TMPL:END%

%TMPL:DEF{"aftertext"}%%TMPL:PREV%%ADDTOZONE{"head"  
  id="BLOGPLUGIN::CSS"  
  text="<link rel='stylesheet' href='%PUBURLPATH%/%SYSTEMWEB%/BlogPlugin/build/blogplugin.css'  media='all' />"  
}%%TMPL:END%

%TMPL:DEF{"sidebar"}%%DBCALL{"Applications.BlogApp.RenderSideBar" SIDEBAR="Category"}%%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