I have a specific problem where I hope someone can point me in the right direction.
I have a list of projects on a site. On each project page there is a list of products that has been used in the specific case. The products has been selected in the manager on a multi-select listbox where the list is generated from the products displayed elsewhere on the site.
That means that the listbox stores the products related to the project in a TV, and the raw data in the value field looks like this: id||id||id||id
Now, what I would like to accomplish is that on the product pages I would like a box with "Projects this product has been used in:" and then a list of projects.
I thought I could use this getResources call to generate the list:
[[!getResources? &parents=`19` &limit=`5` &tpl=`relateredeProdTpl` &showHidden=`1` &depth=`2` &tvFilters=`anvendteProdukter==%[[*id]]%`]]
Where the tvFilters parameter searches for any case of the pages id being present in the projects TV.
BUT this only works when there is one id listed in the TV and only in some cases... If there is more than one id seperated by ||, it never works...
Any ideas on how to solve this?
(On MODX 2.2.6 and latest edition of getResources)