Glossary Item Box

Menu: MenuMain MenuContext MenuPath MenuCms Site Map Data Source

General: OverviewCMS architecture

See Also CmsDeveloperGuide Send comments on this topic.

Site map

The control displays the site map for the current site (as menu tree or any other view).

 

You can use this tag in any place of your site
 

In a template tag and in a SiteMap FirstLevelTemplate tag you can use the following parameters:

Template's part Description
<%# Container.LevelPadding %> Menu item padding level
<%# Container.PaddingHtml %> Padding HTML code
<%# Container.Name %> Menu item's name
<%# Container.Desc %> Menu item's description
<%# Container.Path %> Path to the menu item
<%# Container.IsFirstLevel %> Whether is this first level menu item or not
 
 
Example:

<%@ Control Language="c#" Inherits="CMSLib.Pages.SiteControl" %>
<%@ Register TagPrefix="cmsmenu" Namespace="CMSLib.Menu" Assembly="CMSLib" %>


<cmsmenu:SiteMap runat="server" LevelPaddingHtml="  ">
    <Template>
        <%# Container.PaddingHtml %>
        <a href="<%# Container.Path %>" title="<%# Container.Desc %>"
class="map<%# Container.LevelPadding %>"><u><%# Container.Name %></u></a>
        <br>
    </Template>
    <FirstLevelTemplate>
        <a href="<%# Container.Path %>" title="<%# Container.Desc %>"
class="map<%# Container.LevelPadding %>"><u><%# Container.Name %></u></a>
        <br>
    </FirstLevelTemplate>
</cmsmenu:SiteMap>

Menu: MenuMain MenuContext MenuPath MenuCms Site Map Data Source

General: OverviewCMS architecture

 

 


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