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/13/2007 6:30 AM
 

Hi,

I would like to customize the solpart menu: to add my own attributes to the menu items of the xml generated for the menu. I've been looking for a way to do this and for the class that generates the xml code. It seems like everything is in DLLs. Is there a way of 'overriding' the function that creates the menu items for the xml doc so that I can add my attributes or how can I go about it? Reason why I'm focused on the xml code, is because the spmenu.js file works with data from the xml file. I need to access my own-defined properties in the js file.

Really appreciate your help.

Kind regards,
Ntombi

 
New Post
6/13/2007 9:06 AM
 

I believe what you are looking for is implementing your own navigation provider (which provides the node (xml) collection to the control (menu).  This document may be helpful to you.


 
New Post
6/13/2007 11:04 AM
 

Hi Jon,

Thank you for your response. I tried following the link that you provided, but a blank page would open up. I assumed that the file you wanted me to read (correct me if I'm wrong) was the DotNetNuke Navigation Webcontrols.pdf. I've went through it now and  did a bit of more researching but still don't really know how to go about creating my own navigation provider. Is there a walkthrough tutorial that will tell me what classes I need to create, functions to overwrite, where to inherit from, etc. so that I can create my own attributes for the solpart menu. I'm still using the dnn:SOLPARTMENU rather than dnnMenu. I've been working on the DNN framework for 2 months and I thus still need guidance in such matters.

Kind regards,

Ntombi

 
New Post
6/13/2007 3:48 PM
 

I think the easiest thing to do is open up an existing provider and tweak it as needed.  For example, copy the contents of this folder into your own named folder. [DNNDir]\Library\Providers\NavigationProviders\SolpartMenuNavigationProvider\

Rename it to something suitable for you.   Open up the code and change the reference of Solpart to something your own.

Once done, open your web.config and add your own provider entry

    <navigationControl defaultProvider="SolpartMenuNavigationProvider">
      <providers>
        <clear />
        <add name="YOURNAMEMenuNavigationProvider" type="DotNetNuke.NavigationControl.YOURNAMEMenuNavigationProvider, DotNetNuke.YOURNAMEMenuNavigationProvider" providerPath="~\Providers\NavigationProviders\YOURNAMEMenuNavigationProvider\" />

Then to test it out, specify a ProviderName in your skin's menu token (as the document states).

Once working, simply tweak the menu's properties as you see fit.


 
New Post
6/14/2007 7:45 AM
 

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.

 
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