Documentation
TODO
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!='unpublished' 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='%SCRIPTURLPATH{"view"}%/%THEWEB{default="%BASEWEB%"}%/TopCategory?time=$percntDATETIME{\"01 $key2 $key3\" format=\"$epoch\"}$percnt$percntIF{\"'%CAT{default=""}%'!=''\"
then=\"&catname=%CAT%\"
}$percnt'>
<span class='foswikiRight'>$count</span>$key
</a></li>"
footer="</ul></div></div>"
}%<!-- -->%STOPINCLUDE%
Test
Test 1
ERROR: DBSTATS can't find web 'Blog'
Test 2
- 02 May 2019, ,
- 30 April 2015, ,
Calls to 'RenderArchives'
Copyright
© 2005-2019
http://michaeldaumconsulting.com
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.