Working with Menus and Navigation Objects

Any declaration of Horizontal or Vertical menu instructions for navigation in XML for the master page, two classes are used to make the navigation work:
  1. PortalSiteMapDataSource
  2. PortalSiteMapProvider

The PortalSiteMapProvider object provides the site hierarchy (navigation structure) and monitors the relationship between nodes.Many named instances of this site map provider are listed in the web.config file, and are also available through static properties on this class that the master pages in Office SharePoint Server 2007 deliver. Office SharePoint Server 2007 uses these named instances to provide data to the horizontal and vertical navigation menus. The application shares named instances across all Web requests on the current application domain. The class stores no session information. If necessary, session information is stored on the HttpContext class.

The PortalSiteMapDataSource object maps navigation features from the PortalSiteMapProvider and filters navigation elements to determine which are viewable to the user in the horizontal or vertical menus or in breadcrumbs.It also provides type-based trimming of navigation nodes and an extensible trimming mechanism.

Let us see the Horizontal and Vertical menus in detail in next posts…

Cheers…


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s