Different templates for different users
Archived from the Xataface Users forum.
iliakros — Wed Feb 03, 2010 3:08 am
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
iliakros — Wed Feb 03, 2010 4:38 am
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
shannah — Thu Feb 04, 2010 12:13 pm
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.