+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / Div reordering after publish

Div reordering after publish

2 posts, 0 answered
  1. Maxim
    Maxim avatar
    7 posts
    Registered:
    11 May 2011
    13 May 2011
    Link to this post
    Hello all,
    I've recently started to design a web site using Sitefinity 4.1 and encountered a problem which confuse me a lot. I have a page which inherits a template which inherits another template (page -> defaultemplate -> basetemplate). 3 Divs are defined in basetemplate and one is defined in defaulttemplate("top_bar" div).  I found that when I preview the page divs locations+ are following:
    <div class="sf_cols header">
    <div class="sf_cols top_bar">
    <div class="sf_cols center_contenr_wrapper">
    <div class="sf_cols footer">
    After publishing order of divs on the page changes to(which leads to change of page look)
    <div class="sf_cols header">
    <div class="sf_cols center_contenr_wrapper">
    <div class="sf_cols footer">
    <div class="sf_cols top_bar">

    I thought that preview should be exactly the same as page after publishing. It can be really confusing to editors on a site if Sitefinity cannot show preview correctly. Anybody has any idea why the order of divs was changed or it's a bug? 
  2. Jordan
    Jordan avatar
    172 posts
    Registered:
    20 Oct 2015
    16 May 2011
    Link to this post
    Hi Maxim,

    This is a known ASP rendering issue. To avoid the random reordering of the elements you should not left the first level content placeholders empty. In the empty placeholders which you are going to use  in the child template you should put a 100% layout widget. The result in the child template will be the same.





    Regards,
    Jordan
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered