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.