Hi,
I have a TV which stores "related IDs", that are IDs of other resources that may be interesting for the visitor. I do that whith the following getResources call:
[[getResources? &parents=`-1` &resources=`120,71,45` &sortby=`menuindex` &sortdir=`ASC` &includeTVs=`1` &processTVs=`1` &showUnpublished=`0` &showHidden=`0` &limit=`16` &tpl=`relatedTpl`]]
Now, when I unpublish a resources, it’s ID is still in the TV "related IDs" of the other resources which are related and still online. But that leeds to the situation, that the relation is shown allthough the resources is unpublished! Say, "71" had been unpublished, it still would apear in the "You might also be interested in this:" box.
And that is strange, because I explicitly told getResources with "&showUnpublished=`0`" that it shall ignore unpublished resources. For some reason this does not affect resources that are submitted with the "&resources=" parameter. Setting &parents=`` does not help anything.
So, how can I display a bunch of IDs with getResources and filter out the ones that are not published? This looks like a bug or am I missing something?
thanks
Oliver