cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to add a custom attribute as dropdown in cmscockpit hybris

0 Kudos
452

I have created a new Item CmsParaGraphStyle and added this item as a relation to CmsParagraphComponent. Now I need to display this property for CmsParagraphComponent as a dropdown in CmsCockpit. I added the field to "editorArea_CMSParagraphComponent.xml" as below

<group qualifier="editorial" visible="true" initially-opened="false">

<label key="config.general.editorial" />

<property qualifier="CMSParagraphComponent.content" editor="wysiwyg"/>

<property qualifier="CMSParagraphComponent.paragraphStyle" editor="shortListEditor"/>

</group>

But it doesn't work.

I want my paragraph style to look like Catalog Version as below.

View Entire Topic
0 Kudos

I got the solution to it.

Apparently for Enum type attribute values CMSCockpit by default renders dropdown. So i had to made my attribute Enum type.