Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# martijnb 3/5/2005 9:48 AM
Hi all

For a while I've been thinking for a way to have custom menu's that have links to sitemap, search, etc..

I've come up with the following:

There is going to be a Menu class that has is related to a root node (home page for a distinct culture). To that menu you can add any node in the site that has the same root node. The Node class will get a boolean flag to prohibit it from displaying in the hierarchical site navigation (if you want).

To display the menu you'll have to put a placeholder in the template where the menu is going to be. The output of the menu will be a simple ul list so you can give it any look you want with css. If there is no placeholder in the template, the menu won't be visible but nothing will break either.

Does this make sense? Or will it be too complex? The main benefit of this solution is that it doesn't require any changes in the way pages are rendered now.
# sleuth 3/20/2005 2:35 PM
I think it is good that you are taking into account different cultures as part of the hierarchy. I am wondering if you are considering both culture and language. For instance Canadian / French and Canadian / English; will they both have the same culture? Or are you doing it language based, 1 French hierarchy and 1 English hierarchy? A couple of links I wanted put into the CSS menu mix:

http://www.alistapart.com/articles/dropdowns/

http://www.aplus.co.yu/adxmenu/the-ultimate-drop-menu/

I found the AdxMenu works well.

The other piece that has not been discussed was the use of different CSS classes within the generated menu. For instance maybe one of the UL should be generated with a “selected” CSS class.

# martijnb 3/20/2005 3:38 PM
sleuthI think it is good that you are taking into account different cultures as part of the hierarchy. I am wondering if you are considering both culture and language. For instance Canadian / French and Canadian / English; will they both have the same culture? Or are you doing it language based, 1 French hierarchy and 1 English hierarchy

It's culture based because it's not only used for language, but also for displaying dates etc..
http://www.aplus.co.yu/adxmenu/the-ultimate-drop-menu/

I found the AdxMenu works well.

Looks great indeed! Only one caveat: it requires that your page is xhtml compliant and has the right doctype. We can do the doctype, but xhtml compliance is very hard with ASP.NET 1.1.
The other piece that has not been discussed was the use of different CSS classes within the generated menu. For instance maybe one of the UL should be generated with a “selected” CSS class.

Look at the current main menu. There is a 'selected' class, but that's on the A tag instead of the LI (or do you really mean UL?) because IE and CSS and standards blah blah blah...:)