【发布时间】:2018-09-11 14:12:03
【问题描述】:
我有一个 CMS 组件(因此它扩展了 SimpleCMSComponent),它的编辑工作在 smartedit 中。该组件具有 Product 属性,用于从目录版本中选择单个产品。虽然在 smartedit 中组件编辑表单是可见的,但是对于上面的属性没有可见的编辑小部件,而只有单词“Actega Product Catalog”及其下方的属性名称。
假设组件名是TypeComponent,属性名是productAttribute,itemtypeTypeComponent的定义大概是这样的:
<itemtype code="TypeComponent" extends="SimpleCMSComponent">
...
<attributes>
<attribute qualifier="productAttribute" type="Product">
<persistence type="property" />
<description>Attribute of type Product</description>
<modifiers read="true" write="true" />
</attribute>
</attributes>
</itemtype>
我尝试按照官方指南应用以下方法,但没有成功:
<bean class="de.hybris.platform.cmsfacades.types.service.impl.DefaultComponentTypeAttributeStructure" p:typecode="TypeComponent" p:qualifier="productAttribute">
<property name="populators">
<set>
<ref bean="productTypeAttributePopulator" />
</set>
</property>
</bean>
应用上面的代码只有属性名称标签是可见的,没有任何可能的迭代。我还尝试使用multiProductSelectorPopulator作为填充器,出现+添加产品按钮并点击它我也可以选择目录版本,但是从产品选择框中找不到产品。
我也尝试了上面的那个和这个填充器productCatalogVersionsSelectorPopulator,但它的行为就像上面的productTypeAttributePopulator一样。
您是否有任何更正以为此正确显示小部件?谢谢
【问题讨论】:
标签: java widget content-management-system hybris