DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Creating dropdowns for pages with children in Razor menu - templates?

 4 Replies
 0 Subscribed to this topic
 19 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 37
Growing Member

Hi all,

Can anyone point me to a resource for some DDRMenu Razor templates that incorporate inner drop-down submenus for pages with children? 

I'm looking at the NVQuickTheme menu code, and the behavior that seems to be standard there is to persistently display a

    with the child pages, rather than the traditional expand/collapse for submenus. 

    Thanks! David

Advanced Member
Posts: 207
Advanced Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
https://docs.dnncommunity...-overview/index.html
https://www.dnnsoftware.c...menu-razor-templates
https://github.com/DNNCom...ts/ddrmenu/index.md/

I also started to add razor menus for the MVC pipeline (https://dnncommunity.org/...VC-Pipeline-for-DNN) version of this skin: https://github.com/Rocket...ee/MVCpipeline/menus

But I didn't complete it, it's still using the xlt version.
Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

IMO that's a CSS issue not really a DDR menu issue?

Here's a ful menu example in razor: https://demo.40fingers.ne...-demo-skin/DDR-Razor

But it souds like you are looking for a styled example?

Growing Member
Posts: 37
Growing Member
Thanks for the feedback, David and Timo! Upon further reflection, this was indeed a CSS / jQuery problem, not a DDR Menu template issue. I was able to apply some code to the existing menu in my project to achieve my desired results without having to alter the Razor scripting that defined the layout. I'll make note of the references you gentlemen provided for future projects, however!
Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

Ok good to hear you fixed it :-)

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved