Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SiteMap - Show Root and First Level At Same Level

Status
Not open for further replies.

JoeAtWork

Programmer
Jul 31, 2005
2,285
CA
I am building a simple company website, at first it will just be a few pages. Over time I plan to add more complexity with added sections and subgroups.

Therefore I want to use a SiteMap to take advantage of the automatic creation of a side menu.

Right now it is just a very simple menu that I want:

Home
Projects
Contact

The "Home" would logically be the root node (Default.aspx), but I want it to display at the same level as the Projects and Contact nodes.
Using the Menu control (bound to a SiteMap), is there a way to combine the root and first level to display as a single level? The only thing I've thought of is to make a dummy root node (Default2.aspx), hide the root, and move the "Home" to the first level. But then my SiteMap would not really reflect the website's orgnization, and I would have to maintain both "Default" pages.

 
Oooops, never mind, I figured it out:

Menu control attirbutes
StaticSubMenuIndent="0px"
StaticDisplayLevels="2"

SiteMapDataSource
ShowStartingNode="True"


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top