Site Maps and Site-Map Providers
Site maps contain a collection of items to be included as part of the website's navigation structure. The items are usually displayed in a hierarchical tree-like structure. In MCMS, this would usually be a list of channels and postings or sometimes galleries, resources, and templates. In its simplest form, a site map can be a plain XML file that stores a list of nodes, such as the following:
<?xml version="1.0" encoding="utf-8"?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"> <siteMapNode url="http://tropicalgreen/" title="Home"/> <siteMapNode url="/PlantCatalog/" title="Plant Catalog"> <siteMapNode url="/Gardens/" title="Gardens"> <siteMapNode url="/Gardens/Members/" title="Members"/> </siteMapNode> . . . code continues . . . </siteMapNode> </siteMap>
After defining the site map, you could add a SiteMapDataSource
to the page together with, say, a Menu control, bind the site...