Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Solpart menu  - where is code that generates xml?Solpart menu - where is code that generates xml?
Previous
 
Next
New Post
6/14/2007 8:37 AM
 

Just one more question: I see that the javascript file spmenu.js creates a SolpartMenu object in function spm_initMyMenu(oXML, oCtl). Which SolpartMenu object is this? Where is the class definition placed? Can I access my properties/methods in the javascript file - the DisplayHomeOnly property?

Thanks.

 
New Post
6/15/2007 4:21 AM
 

Anyone with a solution?

Kind regards,
Ntombi

 
New Post
6/15/2007 8:37 AM
 

ntombikayise wrote

Hi Jon.

I've done what you suggested and created my own navigation provider and fixed all the references. I tested it by specifying a certain value for some property to see whether I will get the desired output - and I did. What I'm still struggling with is the creation of my  own properties. I've looked at the class structure/hierarchy to see the link between the SolpartMenu class called from my provider, which has a namespace of Solpart.WebControls, and the partial SolpartMenu class under the website/admin/skins folder which has the namespace: DotNetNuke.UI.Skins.Controls. I want to create a boolean property called DisplayHomeOnly on the solpart menu. I coded the property definition in the SolpartMenu [website/admin/skins] and my navigation provider. I can't seem to reference the property from my navigation provider class. [Speculation: it's because my navigation provider references the Solpart.WebControls.SolpartMenu class which I can't find, I guess it's only in the DLL].

Please explain how I can go about creating a property?

Thanking you in anticipation.

It sounds like you have the part customized to talk to the underlying control done (your navigation provider), and now you are trying to figure out how to provide the part the skinner writes talk to your provider.

Skin.ascx/htm -> Skin Object -> Navigation Provider -> Navigation Control

Adding a custom property can be done in two ways.

1)  Create your own skin object, probably inheriting from the nav one, adding your new properties and hardcoding it to your navigation provider

2)  Use the new ability to pass custom parameters to your provider as I mention in this blog.  If you then look at the DNNMenuNavigationProvider you will see how this is done.(using the CustomAttributes collection).

Hopefully this is enough information to get you going.

 

 

 


 
New Post
6/15/2007 8:41 AM
 

ntombikayise wrote

Just one more question: I see that the javascript file spmenu.js creates a SolpartMenu object in function spm_initMyMenu(oXML, oCtl). Which SolpartMenu object is this? Where is the class definition placed? Can I access my properties/methods in the javascript file - the DisplayHomeOnly property?

Thanks.

Unless you want to write your own menu control, how them menu handles its client-side rendering is not under your control.  Rather, you are expected to customize the collectoin of nodes you provide your menu (in your navigation provider).

I should mention that something like displaying a particular node is possible using the StartTabId and specifying how many levels deep can be controlled by the Level property (the document I originally linked covers this)


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Solpart menu  - where is code that generates xml?Solpart menu - where is code that generates xml?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out