Kentico CMS 6.0 Context Help

Layout tab

Layout tab

Previous topic Next topic Mail us feedback on this topic!  

Layout tab

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

Here you can specify the page layout of the template. You can either select an existing Shared layout or a use a Custom layout that will only be available for this specific template.


When using a custom layout for the template, you can edit its content via the following fields:


Layout type

Allows you to choose from two possible types of layout code:


ASCX - with this option, the code of the layout will support ASCX markup, i.e. the same syntax that you would use to edit a standard web form or user control, including inline code. Web part zones can be added as controls, for example:
<cms:CMSWebPartZone ID="zoneLeft" runat="server" />
Please note that for security purposes, ASCX layouts may only be edited by users who have the Edit ASCX code permission for the Design module.


HTML - if this option is selected, the layout code will be processed as basic HTML. This means  that ASCX markup, such as controls or inline code, will not work when the layout is rendered. Web part zones may be added through the following type of expression:


Layout code

This is where you can enter the actual code that will be used for the custom page layout. The format used when the code is processed depends on the selected Layout type.


If you click the Add CSS styles link below the layout's code, another editor will be displayed where you can define any CSS classes used by the page layout. The specified styles will be loaded by pages that use the given page template. Please note that this requires the Allow CSS from components setting to be enabled in Site Manager -> Settings -> System -> Performance. For more information about CSS styles of page components, please see the Development -> CSS stylesheets and design -> CSS for page components topic in the Developer's Guide.


Any changes must be confirmed by clicking the Save Save button. You can also Check out (CheckOut) the code of a custom layout to a file and edit it in an external editor. The file will be saved on the disk where the web application is running. Once the layout is checked out, you can check it back in (CheckIn) so that any external changes to the file are reflected in the CMS. You may also undo the check‑out if you do not wish the changes to be taken into account.