DNN Forums

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

DDR Menu in DNN

 12 Replies
 2 Subscribed to this topic
 37 Subscribed to this forum
Sort:
Page 1 of 212 > >>
Author
Messages
New Around Here
Posts: 17
New Around Here

Hi Team,

In DNN DDR menu do we have any capability in which we can show all the menu items to all the users i.e. to grey out menu items/ pages that can't be accessed, but still allow to those who can't access to see the topics. Also Greyed out pages should not be clickable. For Example, lets say we have 1-10 menu items/pages(which are visible in the main menu) among which '2,3,5,8' belongs to fremium subscription (Group 1 set of people) (page they can access too), '2,3,4,5,7,8' (page they can access too) belongs to another group of people second subscription & like this I have n no. of subscriptions. In short this is an opportunity to showcase the full offering to a freemium user or to someone who might only have a single subscription. Any leads would be of great help.

Thanks!

Veteran Member
Posts: 360
Veteran Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
I believe this has been generically answered already on this post:

https://dnncommunity.org/...built-functionality/

Forgive me if I misunderstood.

David Poindexter


Creator:


New Around Here
Posts: 17
New Around Here

Hi All,
Warm wishes!!
I'm curious to know about the inbuilt functionality of DDR Menu if it has an ability to show the green dot to any of the page which has been newly created. Lets say if my menu has 8-10 menu items i.e. pages which show in menu. I'd like to show a green dot for the page which has been newly created. Also it should show the green dot on every login if user has not visited the page. If it has been visited then it will be removed. Any information would be of great help!

~R

Anmol Parikh

Senior Member
Posts: 1325
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!
Posted By anmol_parikh on 6/19/2024 9:18 AM

Hi All,
Warm wishes!!
I'm curious to know about the inbuilt functionality of DDR Menu if it has an ability to show the green dot to any of the page which has been newly created. Lets say if my menu has 8-10 menu items i.e. pages which show in menu. I'd like to show a green dot for the page which has been newly created. Also it should show the green dot on every login if user has not visited the page. If it has been visited then it will be removed. Any information would be of great help!

~R

Anmol Parikh

By default not.
But you can create a custom template and as you can use Razor for that, you could probably add a class based on how "old" the page is (although I'm not 100% that's exposed directly).
If using :visited for links is enough to not show the dot, that's doable too.
But if you want to write if a page has been visited to the user profile, I think writing your own menu component is be a option.

 

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

There's nothing built-in to do this for you, but if you're using a razor template, you could potentially use the <code>CreatedOnDate</code> property of the <code>TabInfo</code> object.  If it's older than the <code>UserInfo.Membership.LastLoginDate</code> property, then show the dot. 

I haven't tried this in the DDR menu recently, though.  It may require a bit more code.  

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Oh! If you're not using a razor template, you could potentially do this using a theme object or module code as well, via a client-side script.  It would need to have some static values dynamically embedded into the script, or have a service it can call to get the same logic.  

(This alternative would almost certainly require a lot more code.

New Around Here
Posts: 17
New Around Here

Hi Team,

In DDR Menu, do we have the capability to show icon in main nav (for any of the nav item we want to). We have 4 levels of navigation and some of the components has AI capability so would like to display that icon. Looking forward for any leads.

Thanks

Senior Member
Posts: 1325
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!

Please check out these examples: https://github.com/40fing...-DDR-Menu-Theme-Demo

New Around Here
Posts: 17
New Around Here

Hi Team,

In DNN Page manager under page settings we do have an option to add small icon/ large icon, Please find the below mentioned query:

How to utilize [=Icon] when using DDR menu token  template, also where this icon will be displayed? (PS: I'm looking for to display this icon in main menu to differente among pages (1st level, 2nd level, 3rd level or so on))

 

Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

Another angle to go about this: https://dnncommunity.org/...20030/New-DNN-Tokens

You could create a category 'icons' and store the code snippet of the icon as a text token. For example 

if you are using a DNN Go theme.

The page name would then be [{icons:baby}] Page name

 

Page 1 of 212 > >>

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