UI Customization Question

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 11, 2009   (RSS)

Re: [jdancisin] UI Customization Question

By Dave - March 11, 2009

Hi Jason,

Those are in:
/cmsAdmin/lib/menus/header.php and
/cmsAdmin/lib/menus/header_functions.php

Edit header_functions.php and add the code in red:

$menuClass = ($selectedMenu == $row['tableName']) ? 'menuOn' : 'menuOff';
$menuClass2 = ($row['tableName'] == 'accounts') ? 'menuAccounts' : '';
$menuLinks .= "<li><a href='?menu={$row['tableName']}' class='$menuClass $menuClass2'>" . htmlspecialchars($row['menuName']) ."</a></li>\n";
}

if ($CURRENT_USER['isAdmin']) {
$menuClass = ($selectedMenu == 'admin') ? 'menuOn' : 'menuOff';
$menuLinks .= "<li><a href='?menu=admin' class='$menuClass menuAdmin'>" . htmlspecialchars(__('Admin')) ."</a></li>\n";
}


That will add a class menuAccounts and menuAdmin.

Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] UI Customization Question

By zip222 - March 11, 2009

Thanks Dave. Thats what I was looking for.