We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45457
    • 2 Posts
    Hi

    I've just installed the latest version of Modx.

    Im using getResources which is working very well.

    On my index page in a right hand column I have my getResource call which displays [[+pagetitle]] and [[+content:ellipsis=`120`]] for my news articles which I use as the navigation URL link to the full news articles.

    Clicking on the link will take you to the another template page displaying the full news article in the main div on the left and a right hand column div which displays the getResource call the same as the index page.

    My question, is it possible to exclude the link in the getResource call in the right hand div of the news article of which you have just linked to and is visible in the main div. When you go to the next article that link will be available again in the getResource call and one you have just link to is excluded.

    This is the getResource call:
    [[!getResources?parents=`13`&includeTVs=`1`&depth=`1`&tpl=`eventsTpl`&includeContent=`1`&limit=`10`&showHidden=`1`]]

    Any feedback would be appreciated, thankyou.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      &resources=`-[[*id]]`
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 45457
        • 2 Posts
        Hi sottwell

        That's brilliant, did the trick.
        Thanks you very much.
        Have a good day.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I don't like television, haven't had one for 20 year or more, so I read the rtfm for evening entertainment wink
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org