cancel
Showing results for 
Search instead for 
Did you mean: 

Ordering of the Input Attributes in SmartEdit Component Editor

0 Kudos

Hello Guys,

I have created a custom component, with few attributes. When trying to add this component in smartEdit, the input attributes are displayed in Alphabetical order, instead of the order I specified in items.xml. Is there a way, I can control the display order of my attributes in smartEdit UI. In the screen shot given below, I want the "Trigger Bank Title", to appear just after Name. The Order I want is: 1. Name 2. Trigger Bank Title 3. Trigger Items 4. Background Image

Thanks in Advance

Former Member
0 Kudos

Hi Ramandeep I noticed that you have a WYSIWYG editor for your custom property. Thats what I need to build into my SmartEdit as well. Would mind telling me how you achived this? Best regards Andy

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

@chhunry.pheng

0 Kudos

Hi I tried doing the above this is what i did :

<bean id="CustomCmsStructureTypeModeAttributeFilterList" parent="defaultCmsStructureTypeModeAttributeFilterList" class="org.springframework.beans.factory.config.ListFactoryBean" >

<property name="targetListClass" value="java.util.LinkedList"/>

<property name="sourceList">

<list>

<bean parent="cmsStructureTypeModeAttributeFilter">

<property name="constrainedBy">

<bean parent="cmsEqualsTypeAndModeBiPredicate" p:typeCode="MarketingCloudFormComponent" p:mode="DEFAULT"/>

</property>

<property name="order">

<list>

<value>formAlignment</value>

<value>width</value>

<value>url</value>

<value>height</value>

</list>

</property>

</bean>

</list>

</property>

</bean>

where typecode is the code of the itemtype created for the custom component . But I am getting the error as "the prefix "p" for attribute "p:typecode" associated with an elemented type "bean" is not bound. Any help would be grateful.Thanks in Advnace

0 Kudos

I have the same issue, did you find the solution?

phoude
Participant
0 Kudos

Add this at the top
xmlns:p="http://www.springframework.org/schema/p"

chhunry_pheng
Explorer
0 Kudos

Have you tried defining an StructureTypeModeAttributeFilter as described here? https://help.hybris.com/1811/hcd/6af5e5d5ff914544b2891b228c42523c.html

0 Kudos

Thanks a lot Chunnry Pheng for your response.

Here is the complete solution. We need to extend the "defaultCmsStructureTypeModeAttributeFilterList" from cmsfacades-structuretypes-mode-config-spring.xml, in our *-spring.xml

 <bean id="xxxCmsStructureTypeModeAttributeFilterList" parent="defaultCmsStructureTypeModeAttributeFilterList" class="org.springframework.beans.factory.config.ListFactoryBean" >
     <property name="targetListClass" value="java.util.LinkedList"/>
     <property name="sourceList">
         <list>
             <bean parent="cmsStructureTypeModeAttributeFilter">
                 <property name="constrainedBy">
                     <bean parent="cmsEqualsTypeAndModeBiPredicate" p:typeCode="VideoComponent" p:mode="DEFAULT"/>
                 </property>
                 <property name="order">
                     <list>
                         <value>height</value>
                         <value>width</value>
                         <value>autoPlay</value>
                         <value>showControls</value>
                         <value>videoUrl</value>
                         <value>videoTitle</value>
                         <value>contentOverlay</value>
                         <value>coverImage</value>
                     </list>
                 </property>
             </bean>
         </list>
     </property>
 </bean>