Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > REgarding the "This is a preview mode of document Home.Closethe preview mode" View modes: 
User avatar
Member
Member
sansugoi_sayounara-hotmail - 12/22/2011 10:34:08 PM
   
REgarding the "This is a preview mode of document Home.Closethe preview mode"
Hi all,,


This is very very urgent.. When I open my website then always it shows "This is a preview mode of document Home.Closethe preview mode. " at top of the window, It always ask to close the preview, it should not give this message..Please guide me how to solve this.. and I have one more question the pages I have created in my kentico website, can I view these pages in Visual studio...in which folder these pages stored...


Thanks
Sansugoi

User avatar
Member
Member
kentico_michal - 12/23/2011 12:00:15 AM
   
RE:REgarding the "This is a preview mode of document Home.Closethe preview mode"
Hello,

To change this behavior you need to have source code license. However, you can simply disable it using CSS styles. You can find the following class PageManagerPreviewInfo and its definition in the ~/App_Themes/Default/DesignMode.css file:

.PageManagerPreviewInfo {
background-color: #F5F3EC;
border-bottom: 1px solid #A4B2BC;
color: #000000;
font-family: Tahoma;
font-size: 11px;
padding: 4px 5px 4px 10px;
}

To hide this preview bar, it should be sufficient to add a new css definition display:none.

Best regards,
Michal Legen

User avatar
Member
Member
rahat.veraida-gmail - 2/5/2012 1:36:03 AM
   
RE:REgarding the "This is a preview mode of document Home.Closethe preview mode"
Hi,
we have the source code license but the same thing shows up on our site too.

User avatar
Member
Member
kentico_michal - 2/7/2012 2:00:16 AM
   
RE:REgarding the "This is a preview mode of document Home.Closethe preview mode"
Hello,

If you have full source code of Kentico CMS, you can modify the CreateChildControls method (CMS.PortalControls.CMSPortalManager class) in order not to display this information banner. However, the recommended way is to use the CSS styles to hide the banner, as mentioned in the previous post.

Best regards,
Michal Legen