We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1081
    • 7 Posts
    I used getResources to create <option> tags based on the resource list, like this:

    [[!getResources? &parents=`3` &depth=`2` &where=`{"template:=":4}` &sortby=`{«pagetitle»:«ASC»}` &tpl=`dropdown-class`]]

    using this tpl:

    <option value="[[+id]]" class="[[+parent]]">[[+pagetitle]]</option>

    At the beginning it worked fine.
    Then I added some more TVs to the templates and made a few snippets.
    That's all I did.

    After a while getResources stopped retrieving any newly added resourses , but only a few those created at the beginning.

    I reinstalled getResources, it didn't help.
    So please any ideas why? Did anybody come accross anything similar?


    getResources Version: 1.6.0-pl
    Released: December 30, 2013
    Since: December 28, 2009

    Thank you,
    Alexander
    P.S. I solved this issue by replacing getResources to pdoResources but still interested in what went wrong with getResources.
    Thank you.

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

    • discuss.answer
      • 4172
      • 5,888 Posts
      did you try with

      &limit=`0`


      otherwise getResources (and I think pdoResources, too)
      does limit the output by default.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 1081
        • 7 Posts
        Thank you Bruno, It was that! I did not unlimit the number or resources being retrieved.
        It works now. Just like this:
        [[getResources? &parents=`3` &depth=`2` &where=`{"template:=":4}` &sortby=`{«pagetitle»:«ASC»}` &tpl=`dropdown-class` &limit=`0`]]

        I owe you a bottle of beer.
        Is there an onlile service I can do that? smiley
        Alexander
        • discuss.answer
          • 1081
          • 7 Posts
          Hello everyboby,

          The following answer has been kindly sent by the author of getResources:

          Yes it has a limit property with a default of 5.

          Please direct these questions to the forums...

          Thank you, Jason