cancel
Showing results for 
Search instead for 
Did you mean: 

Make a component attribute optional in Child Component in SmartEdit

SourourSiala
Newcomer
0 Kudos
158

I have a component that inherits from CMSLinkComponent. I want to make the contentPage, url, category and Product attributes optional in SmartEdit. I tried this code:

<bean class="de.hybris.platform.cmsfacades.types.service.impl.DefaultComponentTypeAttributeStructure" p:typecode="MyCMSLinkComponent" p:qualifier="url">
    <property name="populators">
        <set>
            <ref bean="unRequiredComponentTypeAttributePopulator" />
        </set>
    </property>
</bean>

But it doesn't work. It seems that the CMS Structure API only works on attributes assigned directly to this component and not to the parent component.

View Entire Topic
Lukasz_support
Associate
Associate
0 Kudos

There is no way in Smartedit to make child component attribute inherited from parent optional. You would need to either edit parent component or create new structure.