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 <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.
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.)
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
Please check out these examples: https://github.com/40fing...-DDR-Menu-Theme-Demo
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))
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
The page name would then be [{icons:baby}] Page name
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:
Awesome! Simply post in the forums using the link below and we'll get you started.