Kentico CMS 7.0 Context Help

Design preview

Design preview

Previous topic Next topic Mail us feedback on this topic!  

Design preview

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

This preview mode provides a convenient way to edit design elements and immediately inspect the results side-by-side. You can quickly check how changes affect the appearance of the website without having to leave the editing interface or switch between tabs. It is available for most web design components used in Kentico CMS, including Transformations, CSS stylesheets and various types of HTML or ASCX layouts.


The preview interface is divided into two parts: an editing area where the code or other fields of the given object (stylesheet, transformation etc.) can be modified and a section displaying a live site view of a selected page.


The following options are available on the preview toolbar:


PreviewModeClose Close preview - returns to the standard editing form without a preview section.

SplitViewHorizontal Horizontal layout - splits the area horizontally. The top section contains the editing area (i.e. the code), and the preview of the page is displayed in the bottom half.

SplitViewVertical Vertical layout - splits the area vertically, with the editing area on the left and the page preview on the right.


This allows you to choose the layout that best fits the dimensions of the previewed page and the edited code.


By default, the code editor is automatically expanded to completely cover the first section. If you need to access any of the other fields on the form while using the preview, you can minimize the editor by clicking the Toggle fit-to-window mode (FitToWindow) button on the toolbar below the code. Saving (Save) the editing form automatically refreshes the page preview.


Setting the preview page


It is important to view an appropriate page where you can see the effects of the changes made in the code. For example, when editing a transformation, you need to select a page containing a web part that uses the given transformation to display data.


To configure the page in the preview section:


1. Select a document via the path selector on the toolbar. You have two options:


Click the Select (SelectPath) button to choose a document from the content tree.

Specify a page by manually entering its alias path into the textbox. In this case, you then need to click Refresh (RebuildIndex) to reload the page in the preview section.


When editing a design component from CMS Desk, the preview section automatically preloads the currently selected document.


2. On multilingual websites, switch to the appropriate culture version of the selected document using the language selector on the toolbar.


3. If your website is configured to display different content for specific device profiles, choose the preferred profile for the preview. When previewing content for a specific device profile, you can also click RotateDevice Rotate device to rotate the preview 90 degrees.


The section displaying the page works like the Preview mode of CMS Desk, which means that the specified document does not actually need to be published on the live site. You may also preview documents that are scheduled to be published in the future or are currently in an unapproved Workflow step.