We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11798
    • 43 Posts
    Hello there,

    I just wanted to get results of a resource hidden in the menu using getResources like I often did with Ditto before. Unfortunately, getResources only displays results, if the resource is activated to show up in the menu. Otherwise I would not get anything. I did not specify or create any context, so I guess "web" will be the default one.

    Is there any chance to gain the data of a resource hidden from the menu with getResources?

    Thanks in advance!

    Greetings...

    This question has been answered by multiple community members. See the first response.

    • discuss.answer
      • 30585
      • 833 Posts
      You need to add this parameter to your getResources call: &showHidden=`1`
        A MODx Fanatic
      • discuss.answer
        • 11798
        • 43 Posts
        Thank you! This - of course - did the trick.

        Quote from: treigh at Mar 21, 2016, 04:05 AM
        You need to add this parameter to your getResources call: &showHidden=`1`

        And it's also mentioned in the documentation *facepalm*

        Have a nice day.
          • 30585
          • 833 Posts
          Glad it worked for you.
            A MODx Fanatic