We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6094
    • 60 Posts
    So, I have the following call:
    [[!getResources? &parents=`26` &tpl=`catBox` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &sortby=`id` &sortdir=`ASC`]]


    The problem is the output doesn’t seem to be correct. Under the parent with ID 26 I have 6 pages. They are pretty much duplicates of one another with the exception of the pagetitle. All the pages are published and none are hidden from menu. However, my page is only displaying 5 of the 6 pages in the call. Below is the tpl catBox.

    <div class="catBox">
            	<a href="[[~[[+id]]]]">
                	<h3><img src="[[+tv.categoryImage]]" width="100" height="100" alt="[[+pagetitle]]" />[[+pagetitle]]</h3>
                    [[+content]]
                    <h4>CLICK HERE FOR PRODUCTS</h4>
                    <div class="clear"></div>
                </a>
    </div>


    Does anyone see a reason for the page to display 5 of the 6 pages. Also, the page that is not being displayed in the last in the ID sequence. Not really sure if that makes a difference or not.
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      Try adding &limit=`10`

      That parameter defaults to 5, so it’ll only get the first five (based on your sort/order clause).
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.