I am trying to move component presentations across a page using XPM, but I don’t completely understand the rules followed by XPM to move component presentations. Does it calculate the new place using the other Component Presentation marks in the page? Our problem here is that we use nested component presentations to render component links, we have obtained weird results when moving component presentations (not nested but the outer component presentation). For example, we have three component presentations in our page, but one of them is a component that has three linked components. We render each linked component using RenderComponentPresentation function, and the inner component template does the marking work for each nested component presentation. So we have:
<span>
<!-- Start Component Presentation …… (First component) -->
</span>
<span>
<!-- Start Component Presentation …… (Collection type component) -->
<span>
<!-- Start Component Presentation …… (Linked component)-->
</span>
<span>
<!-- Start Component Presentation …… (Linked component)-->
</span>
</span>
<span>
<!-- Start Component Presentation …… (Other component) -->
</span>
When I try to move the last component presentation using the arrows in the ribbon, it doesn’t move. I think it has something to do with the nested component presentation but as I don’t understand the rules XPM follows, I am not sure how to solve the issue.