Sep
15
Written by:
Dylan Barber
9/15/2009 12:53 AM
When I build my sites in DNN I really do not like to use the default ‘Terms of Service’ and ‘Privacy Statement’ controls. For one thing the controls place the content in the Content Pane of the admin skin the site uses and sometimes this is problematic for a pleasing and cohesive site design. I found a possible ‘bug’ that helps me create my own privacy and terms pages without a lot of work. This is one bug I hope the DNN team doesn’t fix anytime soon! :)
Any skin that uses the current skin objects for ‘Privacy Statement’ and ‘Terms of Use’ can take advantage of this little hack.
- Make sure your site is using a url format of HumanFriendly. So in your web.config file you will need to find the line for the friendly url provider and if you are using the DNNFriendlyURL provider make sure it has urlFormat="HumanFriendly" as one of the parameters.
- Create a new tab/page with a page title of ‘Privacy’.
- Add your own content, move modules around on this page, and change skins as you would any other page.
- Go to any other page and click the link created for the ‘Privacy Statement’ it should now navigate to the page you just created and not to the ‘Privacy’ control.
- Repeat steps 2 – 4 using a page title of ‘Terms’ for the ‘Terms of Use’ page.
One downside to this is the lack of internationalization in the default HTML module but this can be overcome with other modules like the Apollo multi language module. I think the increased and more transparent control over the ‘Terms’ and ‘Privacy’ pages offsets this downside especially if you are turning the site over to non technical people to edit.