Templates - checkbox on multivalued attributes
Brought to you by:
tk1065
Dear Developers,
Recently i build a custom template. I tried to create a checkbox for a mulivalued attribute wich adds or removes a specific value.
For Example: Create a checkbox and determine a value wich corresponds to it. The checkbox will be unchecked if the value is not set on the attribute and vice versa. Checking or unchecking the checkbox should add or remove the determined value to/from the attribute, leaving any other values unchanged.
Regards
Marco
Anonymous
Th template components can be stacked by assigning the same attribute to several components. So, if you use checkbox several times with different true/false values, you can use them for a multiple values. This will currently only work for flipping the values but not for adding and deleteng them. I've added this functionality for 1.8.3. By using the tag <value> instead of <true>/<false> you will be able to add and remove the value from the multivalue attribute by stacking of the checkboxes.</false></true></value>
Cheers,
Tihomir