I’m moving all my getResources/getPage calls over to pdoTools (inc. pagination) and I’m neariy done but this one is clearly not a “drop-in” replacement.
I’m using TagLister (and a custom pset) in conjunction with getResources to return a list of Resources filtered by tag name and to also generate pagination. It all works as expected. But when I change the call from getResources to pdoResources (or pdoPage) no filtered results are returned.
So my question is how can I replicate this functionality using pdoTools and TagLister? Or does pdoTools have a “tag” replacement for TagLister? I didn’t see anything in the docs.
Here’s my current getResources + TagLister call:
[[!getResourcesTag@TagLister?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`0`
&tagKey=`tag`
&toPlaceholder=`results`
&tpl=`tagFilter`
&hideContainers=`1`
&sortdir=`DESC`
&limit=`6`
&pageLimit=`5`
&totalVar=`total`
&includeTVs=`1`
&processTVs=`1`
]]
[[!+results:notempty=`<h1>[[+resultMessage]]</h1>`]]
<ol>
[[!+results:ifempty=`<p>The term [[!getUrlParam? &name=`tag`]] is not used anywhere else.</p>`]]
</ol>
[[!+page.nav:notempty=`<nav>
<ul>
[[!+page.nav]]
</ul>
</nav>`]]