Custom page select attribute with a custom value
Permalink 1 user found helpful
I was wondering if there is a way of creating a custom page attribute of type "select" and also set the value manually? Concrete5 assigns its own id for each attribute value, and so you get as the value for your custom attribute the unique identifier Concrete assigns.
What we want is this:
Where the option values are actually useful in our business context. But we also want to use the Concrete5 custom attributes if possible. Any ideas, or are we stretching Concrete too far?
What we want is this:
<select name="price_range"> <option value="3">$$$</option> <option value="2">$$</option> <option value="1">$</option> </select>
Where the option values are actually useful in our business context. But we also want to use the Concrete5 custom attributes if possible. Any ideas, or are we stretching Concrete too far?
What I would do instead is add some code to map the c5 values to your own values (do this when you're reading the values, like in your report or whatever functionality it is that is using those).