on ‎2019 Nov 28 7:13 AM
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.
Request clarification before answering.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 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.