Load list template based on user group?

fehers

Member
Hi I'd like to do this simple thing. If simple public or registered usergroup is trying to view a list on the frontend I'd like to load the default template. However if the user is loged in and signed to a specific group I'd like to load another template. Is there a simple way of doing this like altering the fabrik template class from the php plugin?
 
You can create two menu items, one visible for standard users, one for your specific group (maybe you have to add appropriate access levels in Joomla's ACL settings).
Then you can set the templates in the menu Fabrik options.
 
You can create two menu items, one visible for standard users, one for your specific group (maybe you have to add appropriate access levels in Joomla's ACL settings).
Then you can set the templates in the menu Fabrik options.

Unfortunately this wont work as the special group who manages their own lists has access to them on separate subdomain and menu. I was thinking bout something like...

if ($_SERVER['HTTP_HOST'] !== 'central.mydomain.co.uk') {
$user = JFactory::getUser();
if(in_array(14, $user->groups)){
$fabrikClass->setTemplate('mytemplatefoldername');
}
}
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top