Hi again!
Considering I would be using this code :
Is it possible to output "Sports" instead of "2"?
I mean, being able to output the word before the value.
So, output "Sports" in the "Sports=2" value.
Output "Health" in the "Health=3" value.
and so on.
By default, It displays the number after the "...=" (equals symbol).
There's a reason behind it, but I cannot change the numbers of each opt_values in my project.
But I would like to output the "word" of each options somewhere.
Thanks!
Considering I would be using this code :
- Code: Select all
<cms:editable name="my_categories" label="Categories" desc="Check all applicable"
opt_values='Entertainment=0 | Computers=1 | Sports=2 | Health=3'
opt_selected = '2'
type='checkbox'
/>
Is it possible to output "Sports" instead of "2"?
I mean, being able to output the word before the value.
So, output "Sports" in the "Sports=2" value.
Output "Health" in the "Health=3" value.
and so on.
By default, It displays the number after the "...=" (equals symbol).
There's a reason behind it, but I cannot change the numbers of each opt_values in my project.
But I would like to output the "word" of each options somewhere.
Thanks!