O'Reilly logo

Enhancing Microsoft Content Management Server with ASP.NET 2.0 by Lim Mei Ying, Stefan Goßner, Spencer Harbar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building an MCMS Site-Map Provider

To build a custom SiteMapProvider, we will create a class that inherits from the base SiteMapProvider class and implement four methods inherited from the base:

  • The FindSiteMapNode() method returns a site map node based on a given URL or GUID.
  • The GetChildNodes() method returns a collection of nodes of a specified parent node.
  • The GetParentNode() method returns the parent node of a specified child.
  • The GetRootNodeCore() method returns the first node in the hierarchy.

As the navigation controls for the TropicalGreen site provide links to channel items, each site map node maps to a corresponding channel item. Nevertheless, you can easily modify the methods to display template gallery items or resource gallery items ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required