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:
<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?

blakeage
 
jordanlev replied on at Permalink Reply
jordanlev
I don't think there's a way to change the values that concrete5 uses for the attributes. Modifying the core code in this way is not going to be feasible either because there are so many parts of the system that rely on those values being a certain way.

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).