Register
Login
 

Support House of Nuke

  

 House of Nuke Forums  
Subject: HouseMenu 2.0 Implementation Issue
Prev Next
You are not authorized to post a reply.

Author Messages
Brandon HaynesUser is Offline
Novice
Novice
Posts:1

06/15/2009 1:22 PM Alert 

Hello,

I have been investigating expanding my templatable navigation provider decoration extension (http://dnntemplatedmenu.codeplex.com/) to decorate other abstract navigation providers.

HouseMenu was one such menu that I considered including as a supported provider (because it's great!). However, due to an implementation issue, it appears that this is not possible.

The HouseMenuNavigationProvider.Bind method is currently implemented as:

public override void Bind(DNNNodeCollection objNodes)
{
Menu.Bind(GetMenuNodes());
}

Note that this method is ignoring the node hierarchy passed as a parameter and implicitly assuming, through the GetMenuNodes call, that it should render something other than the collection requested.

Unfortunately, this obviates any sort of provider decoration approach and makes runtime templating impossible.

If the method were modified to do the following, then existing functionality would continue to operate as expected, and decoration of the provider would be possible:

1. Adjust the GetMenuNodes method to accept, as a parameter, the objNodes collection supplied in the Bind method.
2. Based upon the ultimate scope selected, walk the objNodes collection parameter for the desired node INSTEAD of generating a new collection (the method would typically just return the supplied collection and no walking would be necessary).

The e-mail address on this account is valid, if you have any additional questions. I'd love to be able to support this provider!

Brandon

You are not authorized to post a reply.
Forums > House Modules > HouseMenu 2.x > HouseMenu 2.0 Implementation Issue



ActiveForums 3.6
  

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