Register
Login
 

Support House of Nuke

  

 House of Nuke Forums  
Subject: Source code for House Menu 2?
Prev Next
You are not authorized to post a reply.

Author Messages
Jason JudgeUser is Offline
Novice
Novice
Posts:3

03/12/2009 5:51 AM Alert 

It is probably asked every day, but is the source code available for House Menu 2?

I have an urgent requirement to put together a menu that requires some features that House Menu does not appear to support, but it is 90% the way there. A bit of tweaking to the source is all I need to do.

The changes I would like to make are:

1. Wrap the text within every anchor in the menu with a span.

2. Add a class to every ancestor menu item (from the root menu item to the currently-selected item).

3. Display a menu which includes all immediate children of the current menu item, all ancestors of the current menu item, and all siblings of each ancestor. This is a structure that I have found very intuitive on sites I have developed in other CMSs, but which no menu in DNN seems to support.

If the source is not officially available, what would be the likelyhood of getting an unofficial copy? You can have any code changes that I make to put back into the product. I just need to be able to get this thing adapted quickly.

-- Jason

Jason JudgeUser is Offline
Novice
Novice
Posts:3

03/12/2009 8:56 AM Alert 

I have found some workarounds, and some potential workarounds.

 

Firstly, spans can be wrapped around the root page names in the page admin menu. Whether that has knock-on effects, I don't know. If it does, then I guess I will have to use JavaScript to add the spans at runtime (a right pain) unless there is some undocumented attribute.

Secondly, I have found two attributes that *should* do what I want wrt the classes.

The first one is MenuItemBreadcrumbCssClass, which should add a class to each ancester item. I cannot get it to do anything though, so perhaps it only works in 'breadcrumb mode'? If it does, I would like to ask that it work in any mode, since it is a very useful thing to have.

Next is MenuRootBreadcrumbCssClass, which looks ideal for highlighting the root menu item when the House menu is used for a row of tabs along the top of the screen (showing only the root pages). However, I cannot get that to do anything either. It is not clear whether this also only works in some 'breadcrumb mode' or it simply isn't implemented.

Anybody got any ideas?

-- Jason

Edit: one flaw with the span title hack is that IDs like this appear in the menu:

<li id="vertmenuItem<span>Home</span>">

The menu really needs to protect itself from invalid characters appearing in the page names/titles.

 

Jason JudgeUser is Offline
Novice
Novice
Posts:3

03/12/2009 9:15 AM Alert 

No, I really need that source. The menu looks nice, but the selection algorithm (which pages are displayed) just does not make sense to me; no combination of options gives me the range of pages required. It seems to be a choice between "everything all the time", "immediate children of just one page" or "children of current page only". Those are the options that the SOLPART menu offers, and is one reason why I can't use that menu either.

What I am trying to achieve is to display a vertical menu with:

1. The current page shown, highlighted.

2. The immediate children of the current page.

3. The ancesters of the current page, highlighted and nested.

4. The siblings of the ancesters of the current page, at the appropriate nested levels.

5. The siblings of the current page.

6. The root page in the ancester list should *not* be shown, and subsequently its siblings will not be shown. The root pages are displayed in a separate horizontal menu, so do not need to be duplicated in the vertical menu (though as an option, it would be useful to have if the horizontal menu is not used).

That way the user will always see where they are in context, and can not only go back to any ancester page (like the breadcrumbs) but can branch sideways from any of those ancesters in a single click.

Is anyone else looking for a menu like this?

-- Jason

 

Wells DotyUser is Offline
Novice
Novice
Posts:3

06/24/2009 5:25 PM Alert 
Jason - Check out the new Nav system in DNN5, it allows you to define styles on a per-item basis (child, TabID, first, last, etc.) I would link to it but I haven't been able to get into DotNetNuke.com for a majority of the day.
You are not authorized to post a reply.
Forums > House Modules > HouseMenu 2.x > Source code for House Menu 2?



ActiveForums 3.6
  

Terms Of Use  |  Privacy Statement
Copyright © 2006-2008 by Avastone Technologies. All rights reserved.