BlogEntryViewTemplate
TopicView for BlogEntries

28 January 2025 - 14:54 | Version 1 |

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

%TMPL:DEF{"revinfo::revision"}%%TMPL:END%

%TMPL:DEF{"revinfo::date"}%<span class='foswikiRevisionDate'>%JQICON{"ma-calendar-month"}% 
  <a href="%SCRIPTURLPATH{"diff"}%/%WEB%/%TOPIC%?rev=%CURREV%"> <span itemprop='datePublished' content='%DATETIME{"%FORMFIELD{"Publishdate"}%" format="$year-$mo-$day"}%'>%DBQUERY{
      topic="%WEB%.%TOPIC%"
      format="$formatTime(publishdate)"
    }%</span></a>
</span>%TMPL:END%

%TMPL:DEF{"revinfo::author"}%%TMPL:P{"revinfo::sep"}% 
<span class='foswikiRevisionAuthor' itemprop='author'>
   %JQICON{"ma-person"}% 
   %FORMATLIST{
      "%DBQUERY{topic="%WEB%.%TOPIC%" format="$expand(Author or createauthor)"}%" 
      pattern="^(?:%USERSWEB%\.)?(.*)$"
      split="\s*,\s*" 
      format="$percntIF{\"istopic '%USERSWEB%.$1'\" 
                  then=\"<a href='$percntSCRIPTURLPATH{\"view\" topic=\"%USERSWEB%.$1\"}$percnt' rel='author' itemprop='author' class='foswikiUserField' data-wiki-name='$1'><span itemprop='name'>$percntGETTOPICTITLE{%USERSWEB%.$1}$percnt</span></a>\" 
                  else=\"<nop>$1\"
              }$percnt" 
      separator=", "
    }%
</span>%TMPL:END%

%TMPL:DEF{"comments::default"}%on%TMPL:END%

%TMPL:DEF{"beforetext"}%<div class="%BLOGENTRY_CLASS{default="blogEntry"}% hyphenate clearfix">
%TMPL:PREV%
%JQREQUIRE{"button, deepl" warn="off"}%%ADDTOZONE{"head"
  id="BLOGPLUGIN::CSS"
  text="<link rel='stylesheet' href='%PUBURLPATH%/%SYSTEMWEB%/BlogPlugin/build/blogplugin.css'  media='all' />"
}%
<div itemprop="articleBody" lang="%CONTENT_LANGUAGE{default=""}%">
<!-- -->%TMPL:END%

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

%TMPL:DEF{"aftertext"}%</div>%IF{"TargetPage" then="<p class='blogTargetPage'>[[%FORMFIELD{"TargetPage"}%][%TRANSLATE{"Read more"}%]]</p>"}%</div>%TMPL:PREV%%TMPL:END%

%TMPL:DEF{"pagination::url"}%$percntSCRIPTURLPATH{\"view\" topic=\"$web/$topic\"}$percnt%TMPL:END%
%TMPL:DEF{"pagination::enabled"}%'%DISPLAYPAGINATION{default="on"}%'='on' and TopicType=~'\bBlogEntry\b'%TMPL:END%
%TMPL:DEF{"pagination::order"}%publishdate,topic%TMPL:END%
%TMPL:DEF{"pagination::reverse"}%on%TMPL:END%
%TMPL:DEF{"pagination::query"}%TopicType=~'\bBlogEntry\b' 
           AND State = 'published' 
           AND topic != 'WebTopicEditTemplate'
           AND (preferences.CONTENT_LANGUAGE='%CONTENT_LANGUAGE{default="%LANGUAGE%"}%' OR !preferences.CONTENT_LANGUAGE)%TMPL:END%

%TMPL:DEF{"revinfo"}%%TMPL:END%

%TMPL:DEF{"titleextra"}%%IF{"State != 'published'" 
   then="<span class='foswikiAlert foswikiNormal'>($percntQMSTATE{format=\"$title\"}$percnt)</span>"
}%%TMPL:END%

%TMPL:DEF{"sidebar"}%%DBCALL{"Applications.BlogApp.RenderSideBar" SIDEBAR="BlogEntry"}%%TMPL:END%

%TMPL:DEF{"qualitychecks"}%%TMPL:PREV%%TMPL:P{"qualitycheck::dates"}%%TMPL:END%

%TMPL:DEF{"qualitycheck::dates"}%%IF{
  "PublishDate and UnpublishDate and PublishDate > UnpublishDate" 
  then="<p class='foswikiWarningMessage foswikiHideOnPrint'>%TMPL:P{"qualitycheck::dates::message"}%</p>" 
}%%TMPL:END%

%TMPL:DEF{"qualitycheck::dates::message"}%%TRANSLATE{"Incorrect publish settings: the publish date must precede the unpublish date." 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 arbeitsgruppe.ch? Send feedback
This page was cached on 29 Dec 2025 - 18:11.