Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Page/Author view layout does not match Preview layout View modes: 
User avatar
Member
Member
dcollins-marketwired - 1/27/2014 9:39:53 AM
   
Page/Author view layout does not match Preview layout
I'm still working out best practices of Kentico design.

The way I'm marking up my content, I'm not getting it laid out in Design or Page mode the way it is in Preview or Live mode.

Look at these two screengrabs:

This is what the page should look like. "INFLUENCER MARKET..." is an editable image, and "powered by sysomos" is an editable list of links. The two boxes are inline next to each other:
User image

But this is how it looks in "Page" view (or what I call "Author" view). This is what the authors of the page will see when editing content. The "powered by sysomos" list of links wraps below the image:
User image

It seems to me that this will confuse potential authors.

Is there a way I should/could be laying this out so that my authoring mode more accurately reflects my intent? I assume it has something to do with putting the CSS styling directly into the webparts, but I'm not sure how since, to do so, seems to involve inserting a new div, not applying to an existing div. (eg.: if I want section-1-left and section-1-right to both be inline, I can't simply add a new inner div with display:inline - that won't make the outer divs inline.)

Here is my layout for this page:
<div  class="resources-event">
<div class="wrap main-inner section-1">
<div class="section-1-left">
<cms:CMSWebPartZone ID="zoneSec1left" runat="server" />
</div>
<div class="section-1-right">
<cms:CMSWebPartZone ID="zoneSec1right" runat="server" />
</div>
</div>
...
</div>

And here is my CSS in an external file:
.resources-event{
width:100%;
}

.resources-event .main-inner{
margin: 0;
width: 100%;
}
.resources-event .main-inner.section-1{
background-color: #f7f7f7;
background-image: url(/marketwire/media/4.0_Resources/test_event_bg.png);
background-position: center center;
text-align: center;
}


.resources-event .main-inner .section-1-left{
display: inline;
}

.resources-event .main-inner .section-1-right{
margin-left: 80px;
display: inline-block;
vertical-align: top;
height: 421px;
position:relative;
overflow: hidden;
}
.resources-event .main-inner .section-1-right *{
vertical-align: top;
}

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 2/13/2014 12:09:32 AM
   
RE:Page/Author view layout does not match Preview layout
Hello,

According to your screenshot you are not using version 7, neither version 6, right?

Did you try to use a little bit different styles when you are in the CMS Desk or align your CSS with the edit mode - where the frames have different dimensions? Are the inline elements displayes correctly when you open the CMS Desk in a bigger window (or resize the content tree frame to smaller size)?

Best Regards,
Martin Danko

User avatar
Member
Member
dcollins-marketwired - 2/13/2014 9:25:34 AM
   
RE:Page/Author view layout does not match Preview layout
kentico_martind2 wrote: According to your screenshot you are not using version 7, neither version 6, right?

This problem occurs in v7 as well.
kentico_martind2 wrote: Did you try to use a little bit different styles when you are in the CMS Desk or align your CSS with the edit mode - where the frames have different dimensions?

I'm styling it for preview or live mode.
kentico_martind2 wrote: Are the inline elements displayes correctly when you open the CMS Desk in a bigger window (or resize the content tree frame to smaller size)?

Makes no difference.

Here's my layout for another project in v7:
User image

User avatar
Member
Member
dcollins-marketwired - 2/13/2014 9:28:11 AM
   
RE:Page/Author view layout does not match Preview layout
(You can see that image full-size here: http://www.davesbrain.ca/miscpix/xfer/kentico-edit-layout.jpg)