More in this section

Forums / Developing with Sitefinity / How to reorder controls/widgets across page and template levels

How to reorder controls/widgets across page and template levels

2 posts, 0 answered
  1. Rory
    Rory avatar
    44 posts
    Registered:
    22 Mar 2012
    16 Apr 2012
    Link to this post
    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.
  2. Rory
    Rory avatar
    44 posts
    Registered:
    22 Mar 2012
    18 Apr 2012
    Link to this post
    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.
2 posts, 0 answered