Glossary Item Box

Modules: Modules

Site templates: Module templates

Controls: TemplatePaging Archive NavigatorPanel

General: OverviewCMS architecture

See Also CmsDeveloperGuide Send comments on this topic.

Page list

This module is the page annotations list (with the links to the full text and scaled pictures). It is supported data output by the pages (using TemplatePaging control) and displaying pages for the certain month of the year (with the help of ArchiveNavigator control). You can display pages in both ways with the help of different templates for this module. Using HTML WYSISYG editor you can easily edit pages content through the administrative interface. The list can also be displayed in RSS format (if the list is displayed, the links to RSS versions are automatically added to Meta tags).

 

In a PageList tag you can use the following tags:

 

Using a PageSize attribute of the PageList tag you can determine, how many pages will be displayed on the site page (by default 20). To display a single page, a Page module template is used.

 

Use <%# Container.RSSUrl %> in the TopPart and BottonPart tags to get a link to RSS version
 

In the Template and TemplateWithoutText tags of the PageList tag you can use the following parameters:

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
<%# Container.Head %> Header
<%# Container.Annotation %> Page's annotation
<%# Container.IsDate %> Whether there is a date at the given page or not
<%# Container.IsEmptyText %> Whether there is a text at the given page or not
<%# Container.PathToFullPage %> Path to the page with full information
 

A template file for this module lies in a modules/pagelist folder. It is used when displaying a pages list and can look as follows:

<%@ Control Language="c#" Language="c#" Inherits="CMSLib.Pages.SiteControl" %>
<%@ Register TagPrefix="cmsp" Namespace="CMSLib.Modules.Page" Assembly="CMSLib" %>
<%@ Register TagPrefix="cmsctp" Namespace="CMSLib.Controls.TemplatePaging" Assembly="CMSLib" %>

<cmsp:PageList id="PageList1" runat="server" MenuItemGuid="bf24a1d6-5aaf-4019-835d-cd64eb18a22b" PageSize="5">
    <Template>
        <%# Container.Annotation %><br />
        <a href="<%# Container.PathToFullPage %>">More info...</a>
    </Template>
    <TemplateWithoutText>
        <%# Container.Annotation %>
    </TemplateWithoutText>
    <Separator>
        <hr>
    </Separator>
</cmsp:PageList>

<cmsctp:TemplatePaging runat="server" ControlForNavigate="PageList1"></cmsctp:TemplatePaging>

 

You can put a pages list connected with a menu item anywhere on the site and edit these pages through the CMS administrative interface. For that you should set a MenuItemGuid attribute into required menu item key:

<%@ Register TagPrefix="cmsp" Namespace="CMSLib.Modules.Page" Assembly="CMSLib" %>

...

<cmsp:PageList ID="PageList1" PageSize="5" runat="server" MenuItemGuid="651d9451-e5ea-43fe-a56a-1e3243b36b75" />

 

Modules: Modules

Site templates: Module templates

Controls: TemplatePaging Archive NavigatorPanel

General: OverviewCMS architecture

 

 


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