Hello,
I am trying to bring up a list of press releases, with pagination, using getPage. This is my call:
[[!getPage?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`[[*id]]`
&limit=`5`
&includeTVs=`1`
&processTVs=`1`
&tpl=`mediapostTPL`
&showHidden=`true`
&hideContainers=`1`
&pageVarKey=`page`
&debug=`1`
&cache=`0`
]]
[[!+page.nav:notempty=`
<ul class="pagenavi">
[[!+page.nav]]
</ul>
`]]
And this is the mediapostTPL:
<div class="post">
<h4><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h4>
<div class="entry-utility">[[+tv.mediareleasedate:strtotime:date=`%b %d, %Y`]]</div>
<div class="entry">
<p>[[+introtext]]</p>
<a href="[[~[[+id]]]]" class="more">[[+tv.readrelease]]</a>
<a href="[[+tv.pdfdownload]]" class="pdf">[[+tv.readpdf]]</a>
<div class="clear"></div>
</div>
</div><!-- end .post -->
No successful output of the list occurs. I even put a raw [[*id]] above the call and that renders.
When I change the call to a getResources call like this:
[[!getResources?
&parents=`[[*id]]`
&limit=`5`
&includeTVs=`1`
&processTVs=`1`
&tpl=`mediapostTPL`
&showHidden=`true`
&hideContainers=`1`
]]
I do get the expected output, minus pagination of course. I'm baffled.
[ed. note: iTristan last edited this post 14 years, 7 months ago.]