We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I have a fairly simple pdoResources call
    [[pdoResources? &parents=`0` &showHidden=`0` &tpl=`homeTpl` &sortby=`menuindex` &sortdir=`ASC`]]
    

    with a very simple tpl
    <li>[[+longtitle]] - [[+introtext]]</li>

    with very odd results

    Only some of the resources are getting their fields output, and it's obviously ignoring the sorting properties.

    And while I'm at it, how can I specify resources to omit from being listed?
      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
      • 4172
      • 5,888 Posts
      this snippet-call is working for me

      and

      &resources=`-1,-7`


      is working as usual.

      I'm working with version 1.9.0 rc2
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
      • I just have the basic PackageManager version, 1.8.9 pl3

        I've never before had a problem using pdoResources with pretty much the same properties as I would use for getResources.

        What is odd that if I simply add another ID to the &parents property it works more-or-less as expected...except it does list #1 in spite of the -1 value. Adding &resources=`-1` does remove #1 from the list.
        [[pdoResources? &parents=`0,-1` &showHidden=`0` &resources=`-1` &depth=`0` &tpl=`homeTpl` &sortby=`menuindex` &sortdir=`ASC`]]
        
        [ed. note: sottwell last edited this post 10 years, 3 months ago.]
          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