We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 671
    • 4 Posts
    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.
      • 22303 MODX Staff
      • 10,725 Posts
      This was answered in another thread. Please do not double-post.
        • 1485
        • 3 Posts
        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!!!!
          • 42046
          • 436 Posts
          You can use &offset=`1`
            • 1485
            • 3 Posts
            Quote from: absent42 at May 30, 2014, 10:10 AM
            You can use &offset=`1`

            Many thanks Dan
              Just like this!!!!