I would like to have individual index pages for various users. For example, if an admin logs in, he would see the “status” page. But if a non-admin logs in, they would see another module, IVR, for example. It seems like you could modify config.php to do this, but I’m having some trouble. There are 2 locations in the file that need to be edited to change the default main index page.
-
// allow a module to replace our main index page if (($item['display'] == 'index') && ($display == '')) { $display = 'whatever_module_you_want';
and - `// show the appropriate page
switch($display) {
default:
//display the appropriate module page
if($display == ‘whatever_module_you_want’)
{
$module_name = $display;
$module_page = $display;
}
`
At the top of the file, there is a variable called ‘username’. Could you write an if/then statement to look for specific user names and direct them to the appropriate “home screen”?
Thank you