I have a directory with various resources published and hidden. My getResources call is in the template:
[[!getResources? &parents=`43` &resources=`44,45,46` &limit=`1` &showHidden=`1` &tpl=`random` &tvPrefix=`` &includeTVs=`1` &includeContent`1` &sortby=`RAND()`]]
What I want: display 1 Resource randomly in the Sidebar of the template. I have 3 now but will wind up with 50+.
What it actually does: displays the content of the Resource. Instead of this Primary Resources and a Random Resources in the Sidebar, I have the Primary Resources displaying in both places. If the Resource is blank, the Sidebar is blank.
I can't figure out what I'm doing wrong.
Revo 2.3.2 on MODXCloud, getResources 1.6.1
[ed. note: ultrasef last edited this post 10 years ago.]