RenderArchives display a list of months and the numbers of BlogEntries in it for the sidebar
Documentation
Parameters
- CAT: render archive links in this Category (optional)
- THEWEB: web to read blog entries, default: BASEWEB
Implementation
%STARTINCLUDE%<noautolink>
%DBSTATS{
"TopicType=~'\bBlogEntry\b' %IF{"'%CAT{default=""}%'!=''" then="AND topic ISA '%CAT%'"}% AND State='published' AND topic != 'WebTopicEditTemplate'"
web="%THEWEB{default="%BASEWEB%"}%"
field="publishdate"
hidenull="on"
sort="publishdate"
dateformat="$mon $year"
reverse="on"
pattern="((\w+) (\d\d\d\d))"
header="<div class='blogSideBarSection blogSideBarArchive'>
<h2 >
%IF{"'%CAT{default=""}%'!=''"
then="%TRANSLATE{"[_1] Archive" args="%CATINFO{cat="%CAT%" format="$title"}%"}%"
else="%TRANSLATE{"Archive"}%"
}%
</h2>
<div class='jqSerialPager'><ul>"
format="<li>
<a href='$percntSCRIPTURLPATH{\"view\" topic=\"%THEWEB{default="%BASEWEB%"}%.TopCategory\" time=\"$percntDATETIME{\"01 $key2 $key3\" format=\"$epoch\"}$percnt\"}$percnt$percntIF{\"'%CAT{default=""}%'!=''\"
then=\"&catname=%CAT%\"
}$percnt'>
<span class='foswikiRight'>$count</span>$key
</a></li>"
footer="</ul></div></div>"
}%<!-- -->%STOPINCLUDE%
Test
Test 1
Test 2
Calls to 'RenderArchives'
Copyright
© 2005-2025 Michael Daum
This file is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version. For
more details read the
LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.