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

Swap order of components in smartedit

Former Member
0 Likes
563

I have created a custom component, which contains a list of simple banner components. Now, I see that it is possible to drag and change the order of the components, but it has no effect. The requirement is that the banners on the site also switch based on the order set in smartedit.

Is there a way to achieve this? Any pointers will be appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

aimprosoft
Participant
0 Likes

Hello, Nikhil.
One way to solve this problem is to use a relation with your component as a source and banners as a target, during declaration you can set target's collectiontype as list and set ordered to true.

<relation code="BannersForMyCarouselComponent" localized="false">
   <deployment table="myTable" typecode="16000"/>
   <sourceElement qualifier="myComponents" type="MyComponent"
                  cardinality="many"/>
   <targetElement qualifier="banners" type="SimpleResponsiveBannerComponent" cardinality="many" collectiontype="list" ordered="true">
   </targetElement>
</relation>