Glossary Item Box

Modules: Modules

See Also CmsDeveloperGuide Send comments on this topic.

Catalog

This module allows you to organize catalogue which items can belong to different rubrics. Each rubric is a single menu item.

 

In a module folder there are 3 files:

Requests dispatcher

Requests dispatcher is located in default.ascx. This file doesn’t need to be changed. It only distributes requests (whether it is necessary or not to show the items list or information about a certain catalogue item).
This file should contain the following (only this and nothing else):

<%@ Control Language="c#" Inherits="CMSLib.Modules.Catalog.CatalogDispatcher" %>

 

Catalogue rubric items list

A template of a catalogue rubric items list is located in CatalogList.ascx. In this file it is tuned, in which form a catalogue items list is displayed. It is supported data output by the pages (using TemplatePaging control).

In CatalogItemList tag you can use the following tags:

 

In the Template tag of the CatalogItemList tag you can use the following parameters:

Template's part Description
<%# Container.Name %> Element's name
<%# Container.Annotation %> Annotation
<%# 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 is located in modules/Catalog/CatalogList.ascx and can look as follows:

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

<cmsc:CatalogItemList id="CatalogItemsList1" runat="server">
<templateWithoutText>
    <%# Container.Name %>
    <p>
    <%# Container.Annotation %>
</templateWithoutText>
<template>
    <a href="<%# Container.PathToFullPage %>" title="More info">
    <%# Container.Name %>
    <p>
    <%# Container.Annotation %>
    <br>
    <u>More info...</u></a>
</template>
<Separator>
    <hr>
</Separator>
</cmsc:CatalogItemList>

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

 

Catalogue item

A catalogue item template is located in CatalogItem.ascx. There it is tuned, in which form a single catalogue item is displayed.

In CatalogItem tag you can use the following tags:

 

In the Template tag of the CatalogItem tag you can use the following parameters:

Template's part Description
<%# Container.CatalogItemGuid %> Catalog element's Id
<%# Container.Name %> Element's name
<%# Container.Annotation %> Annotation
<%# Container.Desc %> Description of the catalog's element
 
 
A template file is located in modules/Catalog/CatalogItem.ascx and can look as follows:
<%@ Control Language="c#" Inherits="CMSLib.Pages.SiteControl" %>
<%@ Register TagPrefix="cmsc" Namespace="CMSLib.Modules.Catalog" Assembly="CMSLib" %>
<cmsc:CatalogItem runat="server">
<TEMPLATE>
         <%# Container.Name %><BR>
         <%# Container.Desc %>
</TEMPLATE>
</cmsc:CatalogItem>

Modules: Modules

 

 


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