Click here to 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
rinali
1:23 19 May '08  
can i get microsoft content management dll?
GeneralNeed Urgent Help
Member 4242227
19:15 12 Mar '08  
I need urgent help the xact procedure to migrate from mcms 2002(sp1) site to mcms 2002(sp2)..
plz send the article or whatever you think to my email id
krish_sinha345@rediffmail.com
Questionhi ....confused with steps given..
Triplek
23:30 18 Oct '07  
hello,
i was confused with the steps given to see the output can any one help me in doing so...how to find the web control and how to process...i am in need of sitemap sample please...

thank you...
GeneralLocation of web controls
r_samah
0:07 23 Aug '07  
Hi

Where are the web controls actually located?
How do I reference the web control directory when I register the control?

Thanks
GeneralHow to add postings ?
c borkowski
10:50 25 May '05  
What would be required in the code to show the postings as well ?

chris borkowski
guggenheim museum
GeneralRe: How to add postings ?
Stephen Huen
11:10 25 May '05  
The C# version does. I have not got around to bringing this VB version in sync with the C# version.
GeneralRe: How to add postings ?
c borkowski
11:12 25 May '05  
Thanks - I'll go hack at it.

chris borkowski
guggenheim museum
GeneralI don't have file dll to run it.
nminhkha
17:16 30 Jan '05  
I'm trying to find dll file but not. Help me pls.

new lover
GeneralPerformance Problem
alexcohen
2:01 17 Feb '04  
In a large site, where the tree is deep, this code will not perform very well. The page hosting the site map will take a long time to load.
It would have been better to get the first two levels of the tree, and then respond to expand requests by posting back to the server.
And of course you always need to use asp.net caching, at the page or control level.
GeneralRe: Performance Problem
Anonymous
10:42 27 Sep '04  
You can't cache ASP.NET controls or they don't do validation or proper postback b/c they lose session info (for CMS this isn't healthy). You can cache web user controls (.ascx files) - but any ASP.NET controls they contain may get screwy.


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