The <tpl:Archives> loop is used to navigate through the different publication dates of posts on the blog. It is mainly used to create a general archives page.
Defines the precision level of returned dates. Possible values are:
Default value is month.
Use this attribute to only return archives of a given category. The value it takes is the category URL. For example:
<tpl:Archives category="Stories">
Indicates what type of post has to be used to return the archives. Default value is post.
This attribute only returns archives including posts in a given language.
Indicates how to sort the dates. It can be either asc (ascending) or desc (descending). Default value is desc.
By default, the <tpl:Archives> loop takes different contextual filters into account. For instance, when displaying a category, only the periods during which articles were published are displayed. When setting this attribute to 1, stops taking these filters into account.
Default value is 0.
<tpl:Archives> <h3>{{tpl:ArchiveDate}}</h3> </tpl:Archives>
<tpl:Archives lang="ja" order="asc" type="day"> <h3>{{tpl:ArchiveDate}}</h3> </tpl:Archives>
Wiki powered by Dokuwiki.