Hiding private content
Posted: Sat Sep 11, 2010 9:13 pm
I am moving a site from phpWebsite 9.x to CMSMS 1.8.2 and trying to keep the look and feel as similar as possible. I have all the pages created but am running into a problem with managing access to pages that are for members only. I have read Robert Campbell's excelent article on Hiding Private Content in CMS Made Simple and as long as I use the same templates as the article everything works OK. However the site is using the CSSMenu left + 1 column template and theĀ cssmenu template which is quite different from the simple_navigation template. I have the template working i.e. it redirects to the login page if a user who is not logged in clicks on a restricted link, but I am having a problem with hiding the menu link altogether fron a user that is not logged in.
I think that the issue may be where I am placing the code in the menu template, but so far all I have accomplished is displaying no menu to anyone so I have backed the code out.
For reference, the original site is http://clan-donald-usa.org/cdusa/ and the CMSMS site is [url=http://clan-donald-usa,org/CDCMS/]http://clan-donald-usa,org/CDCMS/[/url].
Thanks in advance for ant pointers.
I think that the issue may be where I am placing the code in the menu template, but so far all I have accomplished is displaying no menu to anyone so I have backed the code out.
For reference, the original site is http://clan-donald-usa.org/cdusa/ and the CMSMS site is [url=http://clan-donald-usa,org/CDCMS/]http://clan-donald-usa,org/CDCMS/[/url].
Thanks in advance for ant pointers.