Is this request over the top? I have a list of properties with eco-features. Each property can have several eco-features and the client selects these in MODx with a TV multi-select drop-down list. I need the output from this tv for two different things : a) to show relevant eco-icons for each property in a ditto-generated list and b) as a value within the dittofilter snippet.
At present, I can only think of doing this by setting up two separate tvs and getting the client to select the eco-features twice.
tv 1 [*icon-eco*]:
Cob building==<img src="assets/images/design/icon-cob.png" />||
Compost toilets==<img src="assets/images/design/icon-composttoilet.png" />||
Geothermal==<img src="assets/images/design/icon-geothermal.png" />||
Green Roof==<img src="assets/images/design/icon-greenroof.png" />||
Lime/hemp plaster==<img src="assets/images/design/icon-hempplaster.png" /> etc.
tv 2 [*search-eco*]:
Cob building||Compost toilets||Geothermal||Green Roof||Lime/hemp plaster etc.
Is there any way at all to about having the client do this twice?? All advice appreciated. Thanks.
what you can do is that:
create a folder in the resource-tree: eco-features
create a resource for each eco-feature.
pagetitle: the feature
image-tv: the image
make your eco-features-tv a dropdown with @select-binding to get the input-options with pagetitles and ids of eco-features-resources dynamically.
for output use delimited by ’,’
then you can use this ids to get the images and other stuff for selected features with ditto for example.