Thursday 02 October 2003 4:14:07 am
Hi I want different users to have different "views" of my site. To do this I've started with a fairly simple example, using the news template site as a basis. I have two versions of pagelayout.tpl, the original and a modified version where the menu items "login" and "register" appear on the left menu. I want anonymous users to see the modified template and logged in users to see the original. Here they are displayed in the news_admin interface:
Template Design Resource
/pagelayout.tpl design/news/templates /anonpagelayout.tpl design/news/override/templates
I also have an entry in settings/siteaccess/override.ini.append that reads:
[anon_user_view]
Source=/pagelayout.tpl
MatchFile=/anonpagelayout.tpl
Subdir=templates Match[class]=10 (with 10 being the class of the anonymous user) It doesn't seem to be working, have I gone about it the right way? I don't mind if no one can help me fix it, I just wanted to know if I'm doing this the wrong way... ~James~
|