Skip to main content
Email Password   helpLost your password?

Sample Image - sample.gif

Introduction

For use in Microsoft Content Management Server, this Site Map web control displays channel structure in a hierarchical tree that is expandable and collapsible when viewed in a IE4+ or NS6+ browsers. When viewed in NS4, the tree is fully expanded. The starting channel is configurable so you can have multiple instances of the control in one page, rendering different portions of a site if so desired.

A C# version of this control is available here.

Description

The web control has several public properties:

Installation instructions

  1. Copy SiteMap.vb to the web control directory of your MCMS site.
  2. In your sitemap template, register the control, include SiteMap.css, and insert the control. For example:
    <%@ Register TagPrefix="wc1" 
      Namespace="WebControlLibraryRootNamespace.QuestechSystems.WebControls"
      Assembly="WebControl Library Assembly Name" %>
    ...
    <head>
    ...
    <link rel="stylesheet" 
      href="/<MCMS Site Application Name>/style/SiteMap.css" media="all">
    ...
    </head>
    ...
    <wc1:SiteMap id="SiteMap" runat="server" StartChannelPath="" 
      JavascriptPath="/<MCMS Site Application Name>/Includes/" 
      ExpandMap="" SortChildrenBy="Display Name" 
      ShowPostings="True" DefaultPostingName="default"
      ShowDescription="" MaxLevels="0">
    </wc1:SiteMap>
    ...

    If your like the Expand All and Collapse All links as shown in the above picture, add links to the template like:

    <a href="#" onclick="actionLayer(true);return false">Expand All</a>
    <a href="#" onclick="actionLayer(false);return false">Collapse All</a>

    Note the media="all" attribute in the stylesheet reference. It prevents NS4 from reading it, as SiteMap.css is not compatible with NS4. If you don't care for NS4, you can also copy the content of SiteMap.css and add it into your site stylesheet.

    Please check if there are any conflicts between your site stylesheet and SiteMap.css. For example, the sample site WoodgroveNetVB messes up the rendering quite badly.

  3. Copy channel.gif, channelopen.gif, and channelclosed.gif into the image directory as specified in the property ImagePath.
  4. Copy SiteMap.js into the directory as specified in the property JavascriptPath.
  5. Rebuild the solution in VS.NET.

History

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
Generaldll Pin
rinali
1:23 19 May '08  
GeneralNeed Urgent Help Pin
Member 4242227
19:15 12 Mar '08  
Questionhi ....confused with steps given.. Pin
Triplek
23:30 18 Oct '07  
GeneralLocation of web controls Pin
r_samah
0:07 23 Aug '07  
GeneralHow to add postings ? Pin
c borkowski
10:50 25 May '05  
GeneralRe: How to add postings ? Pin
Stephen Huen
11:10 25 May '05  
GeneralRe: How to add postings ? Pin
c borkowski
11:12 25 May '05  
GeneralI don't have file dll to run it. Pin
nminhkha
17:16 30 Jan '05  
GeneralPerformance Problem Pin
alexcohen
2:01 17 Feb '04  
GeneralRe: Performance Problem Pin
Anonymous
10:42 27 Sep '04  


Last Updated 17 May 2006 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009