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.)
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)
I was on the right track then. Thanks that worked well!
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!
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
I was playing with that a bit! Has a lot of good features. Especially localization!
In my neighbourhood too! Thanks
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
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 :-)
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.