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

Custom Item Model in Smartedit

Former Member
0 Likes
699

Hi,

lets say I have created a new Item in my *-items.xml like this:

 <itemtype code="customItem" generate="false" autocreate="true" abstract="true">
                 <deployment table="customItem" typecode="10201"/>
                 <attributes>
                     <attribute qualifier="name" type="java.lang.String">
                         <modifiers optional="false" initial="true" unique="true" />
                         <persistence type="property"/>
                     </attribute>
                     <attribute qualifier="displayName" type="java.lang.String">
                         <persistence type="property"/>
                     </attribute>
                 </attributes>
             </itemtype>

Now I want to add this new item to a custom css component like this:

 <itemtype code="CustomComponent" generate="true" jaloclass="de.company.smartedit.jalo.CustomComponent"
                   extends="SimpleCMSComponent" autocreate="true">
             <attributes>
                 <attribute type="CustomItem" qualifier="myItem">
                     <persistence type="property"/>
                 </attribute>
             </attributes>
         </itemtype>

I can create the new css component in SmartEdit, but I cannot add an instance of my customItem to it. It only shows up like this without a selector:

Does anyone know what I have to do here?

Thanks in advance!

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Likes

try to follow these instructions

Creating a Custom Component Type https://help.hybris.com/1811/hcd/6c036ecad0de4e269fb50f2a41de1271.html

cbelka
Participant
0 Likes

yes this is a very good question