on 04-25-2019 7:44 AM
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
@chhunry.pheng
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried defining an StructureTypeModeAttributeFilter as described here? https://help.hybris.com/1811/hcd/6af5e5d5ff914544b2891b228c42523c.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.