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!
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
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.
There's nothing built-in to do this for you, but if you're using a razor template, you could potentially use the CreatedOnDate property of the TabInfo object. If it's older than the UserInfo.Membership.LastLoginDate property, then show the dot.
CreatedOnDate
TabInfo
UserInfo.Membership.LastLoginDate
I haven't tried this in the DDR menu recently, though. It may require a bit more code.
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.)
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.