Glossary Item Box

Modules: Modules

See Also CmsDeveloperGuide Send comments on this topic.

Multi site page

This module allows you to display a page (a menu item of a Page type) from any site of the current database.


In the Template tag of the Page tag the following parameters can be used:

Template's part Description
<%# Container.DateTime %> Date (as DateTime object)
<%# Container.Date %> Date (as string)
<%# Container.IsDate %> Whether there is a date at the given article or not
<%# Container.Head %> Header
<%# Container.Text %> Page's text
 
 
A template file for this module lies in a modules/multisitepage folder and can look as follows:
<%@ Control Language="c#" Language="c#" Inherits="CMSLib.Pages.SiteControl" %>
<%@ Register TagPrefix="cmsp" Namespace="CMSLib.Modules.MultiSitePage" Assembly="CMSLib" %>

<cmsp:Page ID="Page1" runat="server">
<template>
    <%# Container.Date %>-<%# Container.Head %>
    <%# Container.Text %>
</template>
</cmsp:Page>
 
You can place a text block connected with a menu item everywhere on your site and edit this block through the CMS administrative interface.

For that you should set a MenuItemGuid attribute into required menu item key:

<%@ Register TagPrefix="cmsmp" Namespace="CMSLib.Modules.MultiSitePage" Assembly="CMSLib" %>

...

<cmsmp:Page ID="Page1" runat="server" MenuItemGuid="651d9451-e5ea-43fe-a56a-1e3243b36b75" />

 

Modules: Modules

 

 


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