[[!getResources? &parents=`31` &tpl=`groupRowTpl` &sortby=`menuindex` &sortdir=`ASC` &limit=`15`]]
The above displays the resources under parent 31 in
descending order. According to the tree AND the actual menuindex field. Unless I'm mistaken, descending means top to bottom. Setting it DESC displays them from bottom to top.
Weird huh?
Something else...
I've got two resources that are behaving badly. getResources seems to be at the root of the problem, or at least affected by it.
Interestingly enough, it depends upon where I place it in the tree. If I stick it into a hidden folder, publish it, unhide it and view it, it works fine. But if I place it into it's rightful spot, a simple getResources call set to [ [ *id ] ] pulls in children at one call, and can't find the [ [ *id ] ] to process an email TV in another call.
Offending button chunk:
<a href="#" class="button radius group" data-reveal-id="page_lightbox" data-animation="fade">Contact SBSNW [[$thisGroup]]</a>
Offending getResources chunk:
[[getResources?
&resources=`[[*id]]`
&tpl=`groupNameRowTpl`
]]
groupNameRowTpl
(I can't get +pagetitle to display any other regular way, not in the button chunk, nor the getResources parameter. getResources was my solution.)
Assuming the page is wigged, I attempted to recreate it:
I first duplicated a working resource (identical code- sibling - diff content), this did not work. Then, created a whole new resource from scratch, re-entered content and TV's, etc. This new resource works fine.
The wonked resource in question functioned just fine before. The only reason I was messing with it was because the contact form stopped sending emails. At which point I notice the other problem. The contact form contains another getResources call in the modal view to grab the [ [ *id ] ] and entered email from a TV, but even setting the id to `32` directly did not allow it to grab the TV.
It did however work when I set a default email address for the TV, and it sent to that default. That's great for a fallback but not what I need.
Weird part is that multiple duplicate sibling resources with duplicate everything, except content & title, etc. work just fine. And I duplicated these working siblings from the wigged resource in the first place. Back when it worked prior to upgrading to 2.2.5.