UI Customization Question
3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 11, 2009 (RSS)
By zip222 - March 11, 2009
I am trying to make some minor modifications to the CMS Builder interface. If I want to make a change to the main menu along the left side, what file should I be modifying?
What i am trying to do is add a custom class to the "User Accounts" and "Admin" buttons so I can style these slightly differently from the others.
thanks,
jason
What i am trying to do is add a custom class to the "User Accounts" and "Admin" buttons so I can style these slightly differently from the others.
thanks,
jason
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:
That will add a class menuAccounts and menuAdmin.
Let me know if that works for you.
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
interactivetools.com
Re: [Dave] UI Customization Question
By zip222 - March 11, 2009
Thanks Dave. Thats what I was looking for.