We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42560
    • 49 Posts
    Hi, im tryng to get modDocuments and modSymLinks using getresources, but in my results i can see weblinks too, whats wrong whith this snippet? is it the RAND function? i need to display 9 randoms ids too, thats why i put the rand in here XD

    [[!getResources? &parents=`2,21977,1179,1183,19829,19830,21062,21096` 
      &resources=`RAND()` &tpl=`get-post` &limit=`9` &where=`{"class_key:=":"modDocument", "OR:class_key:=":"modSymLink"}, {"published:=":1}`
      &sortby=`RAND()` &tpl_n9=`tpl9th` &showHidden=`0`]]
    


    can you tell me if this code is ok?
      • 4172
      • 5,888 Posts
      &resources=`RAND()`

      ??
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 42560
        • 49 Posts
        Quote from: Bruno17 at Oct 27, 2017, 07:55 AM
        &resources=`RAND()`

        ??

        i know, that was incorrect thought... im trying to get N randoms id from specific folders, with class_key modDocument or modsymlink. how can i do that using getresources? my code above display almost well, except that this &where conditions is showing weblinks too , even if i specified documents/symlinks.