eZ Community » Forums » General » labels for collect info elements

labels for collect info elements

labels for collect info elements

Tuesday 06 November 2012 6:23:40 pm - 2 replies


I've add a new field to the feedback_form with the id phonenum which is an integer.

I tried to accesst to this field with the following code:

 {attribute_view_gui attribute=$node.data_map.phonenumb css_class='span4' label=$node.data_map.phonenumb.contentclass_attribute.name}

and I only get the input box, the label is omited as well as the class selector.

But what is intriging me is this, if I tried to access to other elements in the form like the name or email with similar code it works correctly.

Anyone knows why is this happening?

Thank you for your help.

Wednesday 07 November 2012 5:14:35 pm

Anyone with a solution??

Although a manage to find another solution I still want to know why isn't this working.

Thursday 08 November 2012 10:54:20 am

In the "attribute_view_gui" call, all parameters except "attribute" are optional.

Which means the template you are using to display an integer omits the label.

how to fix:

- find out which tpl you are using (enable list of used tpls in debug output)

- override it somewhere and add label support


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

36 542 Users on board!

Forums menu

Proudly Developed with from