Multi-select TV for resources


Im following this tutorial Multi-select TV for related pages - Tutorials | MODX Documentation
and don’t know why not getting list of resources to select in template variable. Instead I’m getting this:

Expected behavior

Want to have multi select tv list of resources that i can store in database like this 32,12,34… and then be able to use it in the template easily.


modx 2.8

Does anybody know step by step to achieve it?
Thanks guys!

The @SNIPPET binding was added in MODX 3.
In MODX 2.x, use @CHUNK and then put a snippet tag for “listMyResources” in the chunk.

1 Like

Worked like a charm! Thank you!
Is there any differences to retrieving the actual template variable? I have seen the ids are stored in database correctly however cant get this tv variable value in the template…

No, this TV should work the same as the others.

How do you output it in the template?
Do you use an “Output Type” other than “Default” (Tab “Output Options” in the TV configuration)?

1 Like

Sorry, its worked now had a very silly typo…

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.