Hi Guys
I´m using the
getArchives (snippet from the archivist plugin) to archive my news section by Year. Im using it with
getPage to get pagination on it!
The problem is that i´m not getting the locale & all my lexicon entries respected and i don´t know why!
Does anyone have any idea about this problem? The used code follow below, and many thanks in advance!!!!
Snippet Call
[[!getPage?
&elementClass=`modSnippet`
&element=`getArchives`
&context=`[[*context_key]]`
&parents=`[[*parent]]`
&limit=`5`
&includeTVs=`1`
&tpl=`filtered-archives-Tpl`
&setLocale=`true`
&cache=`0`
&toPlaceholder=`results`
]]
[[!+results]]
filtered-archives-Tpl
<!-- START NEW ITEM [[+idx]] -->
<div class="item">
<div class="item-image">
<img src="[[+tv.static-image:phpthumbsup=`w=210&h=125&zc=1&q=100`]]" alt="[[+pagetitle]]"/>
</div>
<div class="item-description">
<a href="[[~[[+id]]]]">
<div class="header">
<h3>[[+pagetitle:ellipsis=`60`]]</h3>
<ul class="item-info">
<li class="date">
[[!If?
&subject=`[[*context_key]]`
&operator=`EQ` &operand=`web`
&then=`[[+publishedon:strtotime:strftime=`%A, %B %e, %Y`]]`
&else=`[[+publishedon:strtotime:strftime=`%A, %e %B %Y`]]`
]]
</li>
</ul>
</div>
</a>
<p><a href="[[~[[+id]]]]" class="button green small">[[%ogolf.button_read_more]]</a></p>
</div>
<div class="clear"></div>
</div>
<!-- END NEW ITEM [[+idx]] -->