I want to display the latest 2 news articles on my hope page, the problem is article 1 and article 2 uses different templates. I can display the latest article by:
[[!getResources? &parents=`10` &limit=`1` &tpl=`article1` &includeContent=`1` &includeTVs=`1` &processTVs=`1`]]
is there a way to exclude latest article and display the second latest. I know that i can use "&resources=`-[id]`" but don’t know how to find latest articles id, it should be something like this:
[[!getResources? &parents=`10` &limit=`1` &tpl=`article2` &resources=`-[id of the latest article]` &includeContent=`1` &includeTVs=`1` &processTVs=`1`]]
Thanks for any help.
-
MODX Staff
- 10,725 Posts
This was answered in another thread. Please do not double-post.
Hi I have question too. I'm searching for the answer that been posted in another thread. But I can't find them. Could you help me , please ?
Just like this!!!!