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

Item selection for custom type not possible in Smartedit

michielc
Explorer
412

Hi all,

We created a component with an attribute of type 'CodeDescription', with an items.xml as follows:

<itemtype code="DemoComponent" extends="AbstractMediaContainerComponent" jaloclass="com.........DemoComponent">
<attribute qualifier="codeDescriptionAttribute" type="CodeDescription">
<persistence type="property"/>
</attribute>
</itemtype>

<itemtype code="CustAbstractCodeDescription" abstract="true">
<deployment table="codedescription" typecode="12001"/>
<attributes>
<attribute qualifier="code" type="java.lang.String">
<modifiers optional="false" unique="true"/>
<persistence type="property"/>
</attribute>
<attribute qualifier="description" type="localized:java.lang.String">
<persistence type="property"/>
</attribute>
</attributes>
</itemtype>

When we want to select an item for this attribute in Backoffice, everything is fine and all items of type CodeDescription are shown and can be selected based on their 'code' attribute (it is configured like that in backoffice config).

However, when we want to select an item for this same attribute in Smartedit, we do not see any editor at all. It seems like the out-of-the-box editor is not able to select this custom type.

Is it possible to realise something similar as in Backoffice, so that we can select this CodeDescription-type attribute in Smartedit based on its code?

Thanks!

Kind regards,
Michiel

Accepted Solutions (0)

Answers (0)