We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Revo Discussions & Support
Search
Answered
[Input filter] How to use the key instead of value ?
409 Posts
Spheerys
Reply #1,
7 years, 10 months ago
Hi,
One of my TV is set like this :
Title1==value1||Title2==value2
In some place I'm using the "value1" result, but somewhere else I need the "Title1" result.
How can I retrieve this value ?
This question has been answered by sottwell.
See the first response.
discuss.answer
☆ A M B ☆
24,524 Posts
sottwell
Reply #2,
7 years, 10 months ago
http://jako.github.io/ToggleTVSet/#output-filter
Here's the snippet to use for the output modifier
https://github.com/Jako/ToggleTVSet/blob/master/core/components/toggletvset/elements/snippets/gettvlabel.snippet.php
Studying MODX in the desert -
http://sottwell.com
Tips and Tricks from the MODX Forums and Slack Channels -
http://modxcookbook.com
Join the Slack Community -
http://modx.org
409 Posts
Spheerys
Reply #3,
7 years, 10 months ago
Yes yes yes !
Thanks Sottwell