CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/29/2004 4:56:46 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 7 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
garyt
Asp.Net User
Is it possible to have more than one Root Menu Item?12/29/2004 4:56:46 PM

0/0

Hi All,

Is it possible to have more than one root menu Item?

I would like to have a menu like this.....(when topMenu1 is selected,ignoring the ....)

Home | TopMenu 1 | TopMenu 2 | TopMenu x
.................SubMenu 1
.................SubMenu 2
.................SubMenu 3

I have the SQL Provider working to provide the data, but can't get the topmenu1,2,X to be on the same level as Home (which is the root)?

Cheers
Gary T
Fredrik N
Asp.Net User
Re: Is it possible to have more than one Root Menu Item?12/29/2004 5:04:51 PM

0/0

Take a look at this post

If you use the SiteMapDataSource you can ignore the root node to be rendered by setting the ShowStartingNode property to false. If you do so, the node under the top node will be displayed, you can also use the StartingNodeOffset and StartingNodeUrl to specify from which nodes you should display.

/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
garyt
Asp.Net User
Re: Is it possible to have more than one Root Menu Item?12/29/2004 5:18:52 PM

0/0

Thanks Fredrik,

I've set ShowStartingNode to false and it worked, that is the home page menu item has disappeared.

The problem is that the menu has switched to a vertical menu and I can see where to change this. Also I've now lost the home page menu item?

Cheers
Gary T
Fredrik N
Asp.Net User
Re: Is it possible to have more than one Root Menu Item?12/29/2004 5:36:56 PM

0/0

You can use the Orientation property to change it to horizontal.

You can add the Home item as a child element to your root node.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
garyt
Asp.Net User
Re: Is it possible to have more than one Root Menu Item?12/29/2004 5:43:59 PM

0/0

Thanks again...

I just noticed that if you change anything on the SiteMapDataSource, it resets the orientation back to Vertical....

Also If I set the StaticDisplayLevel to 2 then it also adds the root and second level menu items together. Just what I wanted

Thanks
Gary T
5 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

Export captivate to Flash, the function is not possible - macromedia ... Export captivate to Flash, the function is not possible, > ROOT > NEWSGROUP > Adobe-Macromedia Forums > ... more advanced project and an extremely ...
Determining all possible parent paths for an arbitrary-depth one-to ... ... (s), and so on to root level, it's one-to-many from that ... is a collection of data where each item has a single parent and zero or more children" ...
menu root item transparent background - Make it Hot! ( Skinning ... ... moment I am affraid that what I am trying to do is not possible since all the ... saw, including official DNN site (this one) have the same problem with the menu. ...
Yahoo! UI Library: Menu It is also possible to retrieve an array of all of a Menu instance's MenuItems ... To change one or more of the images used by Menu, simply modify the style sheet. ...
The Old New Thing : How do the menu functions find items? If more than one menu item has the identifier you requested, then one of them is ... the root menu (which you typically have easy access to) and the item identifier. ...
Editing the menu - Fluxbox-wiki ... a label, but one is not required in which case a blank item will be used instead. ... and [stylesmenu] commands make it possible to install style files without ...
Multiple root categories | Category Module ... to have only one root menu from which all other menu items evolve. ... this is not appropriate, and one would like to have more than one menu block and ...



 
All Times Are GMT