We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19604 ☆ A M B ☆
    • 179 Posts
    Quote from: gadamiak at Jun 30, 2011, 01:54 PM

    That pull request could not be merged. But there is a working one awaiting integration. I’ve been using it successfully for few moths now.
    Quote from: OpenGeek at Mar 29, 2011, 03:27 PM

    It will be indeed be implemented wink
    It’s waiting to be merged already. So, don’t hesitate wink

    I am very happy to hear that you found a solution, gadamiak!

    Hopefully OpenGeek will now implement it in the next update. This would be a VERY WELCOME step forward for my use of getResources! Just love that snippet!
      MINDEFFECTS – DESIGN for PRINT, WEB and MEDIA
      http://twitter.com/mindeffects · http://www.facebook.com/mindeffects · http://www.youtube.com/mindeffects/ · skype://mindeffects_oliver
      • 45070
      • 1 Posts
      Also you can a little make better a core of snippet getResources.

      After define $sortby:
      $sortby = isset($sortby) ? $sortby : 'publishedon';


      you can add this:
      if ( $sortby == 'resources' AND !empty($resources) ) $sortby = 'FIELD(modResource.id, '.$resources.' )';


      In your chunk will sort by you resources:
      [[!getResources?  &resources=`2,14,1,17` &sortby=`resources` &sortdir=`ASC`]]