I am trying to display the latest article post on another page. For this I use:
[[!getResources?
&parents=`24`
&tpl=`latest-post-tpl`
&showHidden=`1`
&limit=`1`
&includeTVs=`1`
&processTVs=`1`]]
And in the
latest-post-tpl chunk:
<div class="post border-bottom">
<h2 class="title"><a href="[[~[[+id]]]]">[[+pagetitle:ucfirst]]</a></h2>
<p class="post-info small-grey">Gepost op [[+publishedon:strtotime:date=`%A %d %b, %Y %R`]] [[+tv.articlestags:notempty=` | <span class="tags">[[%articles.tags]]: [[!tolinks? &items=`[[+tv.articlestags]]` &target=`[[*id]]` &useTagsFurl=`1`]]</span>`]]</p>
<div class="entry">
<p>[[+introtext:default=`[[+content:ellipsis=`400`:WholeWords]]`]]
</p>
</div>
<p class="postmeta">
<span class="links small-grey">
<a href="[[~[[+id]]]]" class="readmore">[[%articles.read_more]]</a>
</span>
</p>
</div>
The problem now is that it displays the
pagetitle and
publishedon fine, but none of the other placeholders. Even a plain
[[+content]] shows up empty. Any ideas?
Admin note:
We're aware posting on this thread throws a 500 server error when trying to post on it. The answer the poster is looking for is to add the &includeContent property for getResources and this has been communicated via private messages. At this point the inability to reply to this thread seems an isolated issue and we are looking into it.
[ed. note: markh last edited this post 13 years, 5 months ago.]