Different Detail View Template for Different Users

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
Tekno Venus
AppGini Super Hero
AppGini Super Hero
Posts: 56
Joined: 2013-01-10 16:37
Location: England
Contact:

Different Detail View Template for Different Users

Post by Tekno Venus » 2013-03-25 21:10

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
Stephen Foulds

Admin, Sysnative Forums -- Sysnative Forums

benzoD
Veteran Member
Posts: 69
Joined: 2013-01-31 21:16

Re: Different Detail View Template for Different Users

Post by benzoD » 2013-03-26 15:45

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.

User avatar
shasta59
AppGini Super Hero
AppGini Super Hero
Posts: 231
Joined: 2013-01-08 19:40
Location: Calgary, Alberta, Canada

Re: Different Detail View Template for Different Users

Post by shasta59 » 2013-03-26 15:52

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
Calgary, Alberta, Canada - Using Appgini 5.50 -

Tekno Venus
AppGini Super Hero
AppGini Super Hero
Posts: 56
Joined: 2013-01-10 16:37
Location: England
Contact:

Re: Different Detail View Template for Different Users

Post by Tekno Venus » 2013-03-26 16:19

Thank you, that's perfect. :-)
Stephen Foulds

Admin, Sysnative Forums -- Sysnative Forums

Post Reply