DNN Forums

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

Dynamic footer links?

Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>





New Around Here





    Is there a recommended way to create dynamic footer links that will change depending on the user role?

    I was hoping to use a DDR Menu menu instead but I don't know how to make a second footer menu work with DNNs page management system so I can just check the "show in menu" for these role based pages.  (I don't want to make the links manually with html because it causes a lot of problems with clients tryng to edit links links themselves and breaking the html code.)






    Veteran Member





      There are serveral way to do this, but I mostly do it like this:

      I would create a page "footerlinks" and make sure it's  excluded in the main DDR menu.
      Example: https://demo.40fingers.ne...n-ddr-...xcludeNodes

      Now use this example in the footer:
      https://demo.40fingers.ne...DR-Menu-NodeSelector > "Direct Children of Page B-A"

      From the DDR example skin (for the footer):

      <dnn:menu menustyle="Menus/02.01-DDR-XSLT-UL-Classes" nodeselector="footerlinks,0,0" runat="server">

      Now you can set the rights per "link" through the DNN page settings.

      Another option (but more hardcoded)

       






      New Around Here





        I was on the right track then. Thanks that worked well! 






        Growing Member





          Posted By Timo Breumelhof on 17 Jul 2019 04:55 PM

          There are serveral way to do this, but I mostly do it like this:

          I would create a page "footerlinks" and make sure it's  excluded in the main DDR menu.
          Example: https://demo.40fingers.ne...n-ddr-...xcludeNodes

          Now use this example in the footer:
          https://demo.40fingers.ne...DR-Menu-NodeSelector > "Direct Children of Page B-A"

          From the DDR example skin (for the footer):

          <dnn:menu menustyle="Menus/02.01-DDR-XSLT-UL-Classes" nodeselector="footerlinks,0,0" runat="server">

          Now you can set the rights per "link" through the DNN page settings.

          This is absolutely brilliant. Nice work, Timo!

           






          Veteran Member





            In the event that you want to do more than adjust links, take a look at https://www.meetup.com/To...UG/events/260293184/

            You can also drop some code into your skin, and call DNN methods.

            For the ultimate, you could build a custom skin object that does all of the work for you.
            Joe Craig
            DNN MVP
            Patapsco Research Group





            Veteran Member





              Posted By Joe Craig on 19 Jul 2019 10:39 AM
              In the event that you want to do more than adjust links, take a look at https://www.meetup.com/To...UG/events/260293184/

              You can also drop some code into your skin, and call DNN methods.

              For the ultimate, you could build a custom skin object that does all of the work for you.

              Actually, Open Content has a Theme Object too.
              You can inject it in your skin and it will render the template of an Open Content Module with that template.
              So you can create a custom page to manage the content rendered in the footer (or somewere else).

              https://opencontent.readme.io/docs/skinobject

               






              New Around Here





                I was playing with that a bit! Has a lot of good features. Especially localization!






                New Around Here





                  In my neighbourhood too! Thanks






                  Veteran Member





                    Posted By Timo Breumelhof on 19 Jul 2019 11:35 AM

                    Actually, Open Content has a Theme Object too.
                    You can inject it in your skin and it will render the template of an Open Content Module with that template.
                    So you can create a custom page to manage the content rendered in the footer (or somewere else).

                    https://opencontent.readme.io/docs/skinobject

                    It seems like every time I look at it, OpenContent has yet another feature I didn't know about.  :D 






                    Veteran Member





                      Posted By Will Strohl on 26 Jul 2019 01:23 PM
                      Posted By Timo Breumelhof on 19 Jul 2019 11:35 AM

                      Actually, Open Content has a Theme Object too.
                      You can inject it in your skin and it will render the template of an Open Content Module with that template.
                      So you can create a custom page to manage the content rendered in the footer (or somewere else).

                      https://opencontent.readme.io/docs/skinobject

                      It seems like every time I look at it, OpenContent has yet another feature I didn't know about.  :D 

                      It does :-)

                       

                       

                      You are not authorized to post a reply.
                      Page 1 of 212 > >>

                      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