T
T
tony_m2015-02-16 15:57:53
MODX
tony_m, 2015-02-16 15:57:53

How to output resources from multiple select to template via getResource?

I have a multiple choice TV from products resources, in possible values ​​- @SELECT pagetitle, id FROM modx_site_content WHERE parent=29 , I want to display the products selected by this field in the template:


But nothing is displayed if I have selected two or more products. Because id is passed to &resources without any separators - 2829 - this is how id - 28 and id - 29 are passed.
When I select one product, everything works fine by itself, since 1 id is passed to &resources.
How do I pass id to &resources separated by commas at what point and how to separate them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Tatarkin, 2015-03-30
@tomasoyer

Set the output separator.
9be7d22aa180420fb9a49f4e37e40819.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question