Tuesday 26 June 2012 4:06:38 pm - 1 reply
I need to gorup checkboxes (class definition, attributes). I have for exampe
checkbox attributes like:
- new item (true/false)
- 3D Technology (true/false)
and I need to have it in one group called for example: options.
I don't know how I can resolve it in ez publish.
I nead it to build form to filter product list (automatically generated), for
checkboxes with options
checkboxes with appearance
Wednesday 27 June 2012 9:46:16 am
In ezpublish, you can use the array/hash template operators to make some temporary arrays to group your data as you see fit (we do this for tags in select bozes, for example).
I am not a fan of large, complicated loops, logic and temporary arrays in templates, so I would personally suggest that you create a custom template operator in which you pass your results as the parameter and have a small bit of PHP code that will re-arrange your results in a way that you can then easily display.
You must be logged in to post messages in this topic!