Glossary Item Box

Site templates: Content templatesDefault page templateMain image pagePrint version templateModule templates

AuthorizationForms: Authorization forms

Modules: Modules

Menu: Menu

See Also CmsDeveloperGuide Send comments on this topic.

Site templates

The main appearance of the site is adjusted by the site templates. Site template is a standard ASP.NET master page.
Master page should contain ContentPlaceHolder with ID=CmsContent, a head and form tags with attribute runat="server".


For all menu items it is used as default template the Default.master template.

 

CMS system supports output of site content in various design patterns.

 
Usually site template contains site menu.
 
Example of a page-template for a site based on the CMS system:
<%@ Master Inherits="CMSLib.Pages.CmsMasterPage" %>
<%@ Register TagPrefix="cmsmenu" Namespace="CMSLib.Menu" Assembly="CMSLib" %>

<html>
<head runat="server"></head>
<body>
<form id="form1" runat="server">

<asp:Menu ID="Menu1" runat="server" DataSourceID="CmsSiteMapDataSource1" >
<p><asp:SiteMapPath ID="SiteMapPath1" runat="server" SiteMapProvider="CmsSiteMapDataSource1"/></p>

<cmsmenu:CmsSiteMapDataSource ID="CmsSiteMapDataSource1" runat="server" ShowStartingNode="False" />

<asp:contentplaceholder id="CmsContent" runat="server"/>

</form>
</body>
</html>

 

For a normal work of a site it is necessary to adjust it’s first page (home page).


If it is necessary, you can set up a face of the page that shows enlarged versions of pictures from the pages with content, as well as a face of a page-template with a print version of the content.


Each module can have its own design pattern and is tuned particularly (see the Modules section). You can set up several patterns for every specific module.

Site templates: Content templatesDefault page templateMain image pagePrint version templateModule templates

AuthorizationForms: Authorization forms

Modules: Modules

Menu: Menu

 

 


© 2005-2007 Astron Digital Ltd. All Rights Reserved.