I have a fairly simple pdoResources call
[[pdoResources? &parents=`0` &showHidden=`0` &tpl=`homeTpl` &sortby=`menuindex` &sortdir=`ASC`]]
with a very simple tpl
<li>[[+longtitle]] - [[+introtext]]</li>
with very odd results
Only some of the resources are getting their fields output, and it's obviously ignoring the sorting properties.
And while I'm at it, how can I specify resources to omit from being listed?
-
- 5,888 Posts
this snippet-call is working for me
and
is working as usual.
I'm working with version 1.9.0 rc2
I just have the basic PackageManager version, 1.8.9 pl3
I've never before had a problem using pdoResources with pretty much the same properties as I would use for getResources.
What is odd that if I simply add another ID to the &parents property it works more-or-less as expected...except it does list #1 in spite of the -1 value. Adding &resources=`-1` does remove #1 from the list.
[[pdoResources? &parents=`0,-1` &showHidden=`0` &resources=`-1` &depth=`0` &tpl=`homeTpl` &sortby=`menuindex` &sortdir=`ASC`]]
[ed. note: sottwell last edited this post 10 years, 3 months ago.]