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, ...dnnMENU question for the Skinning TeamdnnMENU question for the Skinning Team
Previous
 
Next
New Post
6/16/2008 6:09 PM
 

Brandon Haynes wrote

Hi Cuong,

I use Telerik's RadMenu exclusively, but since no one else has responded maybe I can yield some insight into your problem.

To diagnose problems like these, I suggest looking at the menu navigation provider and seeing how the relevant values are being used.  Looking in Library/Providers/NavigationProviders/DNNMenuNavigationProvider/DNNMenuNavigationProvider.vb, I see the CSSSeperator attribute being used as follows:

If String.IsNullOrEmpty(SeparatorHTML) = False Then
 If CSSSeparator <> "" Then strSeparatorClass = CSSSeparator
 strSeparator = SeparatorHTML
End If

...

If String.IsNullOrEmpty(strSeparator) = False AndAlso strType = "All" Then 'strType <> "Left" AndAlso strType <> "Right" Then
 objMenuItem.LeftHTML &= GetSeparatorMarkup(strSeparatorClass, strSeparator)
End If

So, SeperatorHTML must be specified in order for this attribute to be used.  Once the strSeparatorClass is initialized, it is only used when strSeparator is non-empty AND strType == "All".  Only then is the generated markup value appended to the results.

Pretty confusing, huh?

Brandon

Brandon,

Thanks for the indepth explaination. However, I did implement the SeparatorHTML along with CSSSeparator, but no luck. I think I need somebody to help set it on debug mode to test it.

Telerik is pretty good. I also use it for our clients. However, just want to fully understand how dnnMENU work in different context.


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
New Post
6/16/2008 6:21 PM
 

Hello,

I can get the separators and active separators working in the tags (not css) but what do you do for a hover? Anybody know how? Also the active separator is lost when a sub menu item of the root is selected. Is there a way around this?

Any help appreciated,

 
New Post
6/16/2008 6:29 PM
 

I tryed a long time ago , 2006 I think , to get  attention of the problem.

I discussed in the forums (jon H), made a few posts in gemini. Some of them still there. One even telling its fixed.

But , but the documentation and the real world doesnt match.

Maybee it is fixed in 5.0 but who knows the DnnMenu are not a function that seems to bee tested so I doubt it will work as expected in 5.0 eiter.

Maybee just the documentation that is wrong who knows ... who cares..

Maybee the core team should.. I dont know...

 
New Post
6/16/2008 6:34 PM
 

Hi Cuong,

I agree -- short of some dnnMenu guru showing up in this thread, my next step would be making debugging modifications to the provider and deploying it to a dev DNN bin directory.  A couple well-placed Response.Write's will probably yield more information than a dozen forum posts. 

Let me know if you need any assistance in getting a debugging setup started (though it sounds like you already have a pretty good handle on it).

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
6/17/2008 8:51 AM
 

Been a long time since I have looked at this.  Salar is correct on one thing, those properties are carry over from Solpart's implementation.  Jan is also right, in that the document was not updated to reflect what actually got implemented.  That said, if you look at the code, you will see that if those properties were implemented all that would happen would be the SeperatorHTML (left/right) included would simply get wrapped in a SPAN tag with a class defined.  I'm guessing the reason I commented out the menus ability to do this is someone suggested this was not needed as we are already specifying HTML, which could be its own tag. 

So to get the ability to specify class tags for the seperators it should be as simple as specifying your classes in your seperators.  Instead of

SeparatorLeftHTML="LEFT" CSSLeftSeparator="myleftseparator"

You code this

SeparatorLeftHTML="<span class=myleftseparator>LEFT</span>"

This gives you complete control over how it gets rendered (you aren't stuck with SPAN tags).

 


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...dnnMENU question for the Skinning TeamdnnMENU question for the Skinning Team


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