How to reorder controls/widgets across page and template lev

Posted by Community Admin on 04-Aug-2018 16:55

How to reorder controls/widgets across page and template levels

All Replies

Posted by Community Admin on 16-Apr-2012 00:00

Hello.


i have a situation where i need to reorder 2 controls on a page.  one content block is added at the template level, and the other is created at the page level.  i cannot figure out how i can programmatically reorder the 2 controls.


if i go through the UI editor, i can easily drag and drop the page level control to be above or below the template level control, but when i add the page level control programmatically it gets added on top of the template level control by default and i cannot figure out how to re-order them either when being added or after.


i can reorder items that are both at the template or page level but that's not quite what i need.


any help is appreciated. thanks.

Posted by Community Admin on 18-Apr-2012 00:00

well this is probably obvious to some but i found a work around.  

simply create multiple contentplaceholders on your template master and you can assign controls to each placeholder.  then you dont have to worry about ordering.

This thread is closed