We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22446
    • 181 Posts
    My website is new and I don’t have much articles written yet. On my homepage I have a getResources call that is calling my last 5 most recent articles.

    [[!getResources? &parents=`115,28` &limit=`5` &offset=`2` &includeContent=`1` &sortby=`publishedon` &showHidden=`1` &includeTVs=`1` &tvPrefix=`` &tpl=`hp_latest_bottom`]]


    Within my parents group I have archive containers. Does anyone know how to exclude a document from a getResource call? I am looking to exclude document id 123. Any help would be much appreciated.
      • 22019
      • 390 Posts
      Try adding &resources=`-123`

      (tip - if you drag a snippet from the left hand menu into the main content area (or anywhere it’s allowed to be used) it will open up with the entire property set you can access, including short help when you hover over a field.)
        Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
        • 22446
        • 181 Posts
        Worked Great!!! Thanks!!!