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

Make a component attribute optional in Child Component in SmartEdit

SourourSiala
Newcomer
0 Likes
491

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Lukasz_support
Associate
Associate
0 Likes

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.