I have a TV that allows a user to input some text to describe an event and allows them to choose a button that links to either a classes page, a trails page or an events page. The TV for the button: "inputOptionValues":"classes page==17||trails page==23||events page==25". Therefore the "More Info" button gets a person to the correct page but everybutton is labelled the same i.e."More Info".
So , the button currently is labelled "More Info" as hardcoded in the html, but how would I allow the user to choose the button label so that the button would say "Classes Page", "Trials Page" or "Events Page" instead?
I suspect I'll be writing a snippet but thought to ask before I ventured too far. Thanks in advance for any help.
You may be able to do it using an output modifier such as:
<a href="[[+link]]">[[+link:is=`[[~17]]`:then=`Classes Page`:is=`[[~23]]`:then=`Trials Page`:is=`[[~25]]`:then=`Events Page`]]</a>
But a snippet would be best.
Thanks so much but does seem that I will need to write a snippet. It isn't quite working. If I find a solution I will post it. Thanks for the help.
Just to update:
I played around with your code LK and found the following works with the exception of the last button name "Trials".
[[+id:is=`17`:then=` classes `:else=` [[ +id:is=`23`:then=` trials `:else=` [[ +id:is=`24`:then=` events `]]`]]`]]
The Events button is left blank. The buttons for Classes and Trails are both labelled correctly. So close, yet so far. Anyone have any ideas what I may be doing wrong? Then I will give this a rest and move on. Thanks.
You're really best off writing a snippet to be honest but if you want a quick dirty fix then you could use this:
[[+id:is=`17`:then=`Classes`:else=``]]
[[+id:is=`23`:then=`Trials`:else=``]]
[[+id:is=`24`:then=`Events`:else=``]]
Thanks LK. For the record your solution worked. And I agree, quick and dirty so time permitting I will write that snippet. But thanks so much for the interm solution as it bought me some time.