Page 1 of 1

Different templates for different users

PostPosted: Wed Feb 03, 2010 3:08 am
by iliakros
Hello,

I would like to give the 'edit record' page a different look for the users
For example:
The admin keeps the original look
The users get a new look (new main template)

How can I accomplish this

Thanks

Re: Different templates for different users

PostPosted: Wed Feb 03, 2010 4:38 am
by iliakros
I found the answer
I am using

Code: Select all
{if $ENV.role == 'admin'}
template
{/if}
{if $ENV.role != 'admin'}
template
{if}

In Dataface_Record_Template.html

You can also check on other criteria like username or whatever is in your user table

Iliakros

Re: Different templates for different users

PostPosted: Thu Feb 04, 2010 12:13 pm
by shannah
Note that using themes it is also possible to give different users different themes enirely.. I'll see about posting a tutorial on this soon.