Page 1 of 1

Different Detail View Template for Different Users

Posted: 2013-03-25 21:10
by Tekno Venus
Hello,

Is it possible to have a different Detail View template displayed depending on the usergroup?

I think it is possible to check the tableview template with this code:

Code: Select all

if($memberInfo['group']!='Admins'){
$options->SelectedTemplate=AdminTVTemplate.html
$options->SelectedTemplate=AdminTVTemplate.html
} else {
$options->SelectedTemplate=OtherTVTemplate.html
$options->SelectedTemplate=OtherTVTemplate.html
}
But would this work for Detail View templates? Or would I need another way of doing this?

Thanks.

Regards,
Stephen

Re: Different Detail View Template for Different Users

Posted: 2013-03-26 15:45
by benzoD
This seems to be the best/easiest method as of now. My first forum post was to ask about this, and Ahmad stated that this is in the works for a future version.

Re: Different Detail View Template for Different Users

Posted: 2013-03-26 15:52
by shasta59
I think you will find what you need in this post.

http://forums.appgini.com/phpbb/viewtopic.php?f=2&t=53

It tells how to create a duplicate template, (which is modified) and then only allow certain groups to see that template with the additional fields/info in it.

Alan

Re: Different Detail View Template for Different Users

Posted: 2013-03-26 16:19
by Tekno Venus
Thank you, that's perfect. :-)