DNN Forums

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

DDR inbuilt functionality

 14 Replies
 3 Subscribed to this topic
 37 Subscribed to this forum
Sort:
Page 2 of 2 << < 12
Author
Messages
Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Further, depending on what the information architecture (IA) is intended to be and do, using the permissions model with security roles makes almost any custom navigation display possible, regardless of the organization of the pages. 

In fact, in the most extreme cases, it's possible for one set of users to literally see a completely different set of pages based on their security role(s), while they may appear to be the same for another set of users.  The only people who would know would be website admins like yourself.  

New Around Here
Posts: 17
New Around Here

Thanks David, you mean multiple DDRMenu for multiple groups/roles/subscriptions?

Veteran Member
Posts: 360
Veteran Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
I just meant you are in full control of how your menu(s) are rendered and behave because you can use any logic you’d like within your men(s) code in the theme.

David Poindexter


Creator:


Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
DDR Menu is basically a template engine that supports tokens or razor. You have way more power with Razor as you can run code and conditions to your liking. The template receives a structure of pages according to the permissions of the logged-in user (or not logged in). Each item in that data structure will have a lot of information about each page including if it is enabled or not, the name, tittle, etc. So like others said, you are in full control about how to render your menu template to your liking from there.

There are some more details in the codumentation here:
https://docs.dnncommunity...s/ddrmenu/index.html
Growing Member
Posts: 75
Growing Member
Posted By anmol_parikh on 6/4/2024 12:13 PM

Thanks Timo, But if I give display pages access to all the users on all the pages then don't you think it will be available for all. Basically what I want is lets say we have 1-10 menu items among which '2,3,5,8' belongs to one group of people (page they can access too), '2,3,4,7' belongs to another group of people(page they can access too) & like this I have n no. of sets of groups. What I want is to showcase all '1-10' menu items to all set of group of people whether they have access too or not (if no access then will take them to access denied/ upgrade page). Is this possible to do via page settings?

AFAIK you cannot show pages a user does not have rights to in a DDR menu, as it filters them out for you. (which is the normal use case)
You can do this with code in your Theme, a custom Theme Object or a module using the DNN API.

This is an example for Open Content, check out the cshtml file for example code.
But don't forget, this way you'll have to do all the "rights/deleted etc.) checks DDR normally does for you, yourself.

OpenContent Razor DNN Menu Example

 

 

Page 2 of 2 << < 12

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