eZ Community » Forums » Developer » Compound attribute in content class

Compound attribute in content class

Compound attribute in content class

Thursday 20 August 2015 11:36:58 am - 1 reply

I want to add a compound attribute in a content class. I want an attribute which has both a dropdown and a text field.

Lets say, i have 5 options in dropdown. One can select an option from that dropdown and enter a value in text field for that selected option. Then he clicks 'add more' and do this previous operation couple of times.

How can i build this type of attribute in content class?



Thursday 20 August 2015 12:55:14 pm

The only way you can do variable compound inputs in an attribute is by storing it as xml - look at the option and matrix datatypes.  Take a look at https://github.com/leidentech/optionmatrix for a combination of the two.


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

36 542 Users on board!

Forums menu

Proudly Developed with from