Hello there,
I have a dropdown in the admin side. There are three options, just like in the example in the CouchCMS tutorial.
So the admin select Rental in the menu however when I try to show it in the html page when I use
I get an int (number). Is there a way to get both with the show view? I need to get Rental and 2 number in different places on the same page. So I would like to have something like
Thank you your advise.
I have a dropdown in the admin side. There are three options, just like in the example in the CouchCMS tutorial.
- Code: Select all
<cms:editable name="my_property_type" label="Property Type" desc="Select one from these"
opt_values='Residential=0 | Commercial=1 | Rental=2'
opt_selected = '2'
type='dropdown'
/>
So the admin select Rental in the menu however when I try to show it in the html page when I use
- Code: Select all
<cms:show my_property_type />
I get an int (number). Is there a way to get both with the show view? I need to get Rental and 2 number in different places on the same page. So I would like to have something like
- Code: Select all
<cms:show my_property_type.label />
<cms:show my_property_type.value />
Thank you your advise.