eZ Community » Forums » Suggestions » problem with chceckboxes
expandshrink

problem with chceckboxes

problem with chceckboxes

Tuesday 26 June 2012 4:06:38 pm - 2 replies

Hi,
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
example:
<p>
    checkboxes with options
</p>
<p>
    checkboxes with appearance
</p>
Please help.

Anna

Wednesday 27 June 2012 9:46:16 am

HI.

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

Friday 06 March 2015 10:59:30 am

The reply has been removed because of violation of forum rules.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from