DNN Forums

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

DDR Menu in DNN

 5 Replies
 0 Subscribed to this topic
 28 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 14
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: 342
    Veteran Member
      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: 14
      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

        Veteran Member
        Posts: 1157
        Veteran Member
          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: 1393
          Senior Member

            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. 

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

            Senior Member
            Posts: 1393
            Senior Member

              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:

              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