Menu_Rendering problem

Hello i have a problem when i add a custom menu item using Menu_Renderingif i put an custom item to menu the navbar custom menu are no show, just are show the menus that appear first in codeif ($menu->Id == “navbar”) { // Sidebar menu or change from “menu” to “navbar” for top menu
$menu->addMenuItem(10009, “candi”, ‘



’.$appli.'

' , "applicantslist.php", -1, "", IsLoggedIn());}if ($menu->Id == "menu") { // Sidebar menu or change from "menu" to "navbar" for top menu $menu->addMenuItem(100, "xxx", '
'.$clientbirthdays.'
' , "applicantslist.php", -1, "", IsLoggedIn());any idea? thanks

Hello now i figured out and work, but i have a another problem, the font type that is show in menu text is different to the defaults menus, my code look as:if ($menu->Id == “menu”) { // Sidebar menu or change from “menu” to “navbar” for top menu
$menu->addMenuItem(10000, “MyName”, ‘


Client Birthdays
’.$clientbirthdays.'

', "MyPage.php", -1, "", IsLoggedIn()); $menu->moveItem("MyMenuText", $menu->Count() -5); // Move to last }

some one know how make this font the same?thanks

Helle i fixed, but i dont find how move the menu item to new position , now appear at the end of the menu

Use the moveItem() method, the 2nd argument is the index of the menu item (in the Items array).

hello, i used $menu->moveItem(“Download”, $menu->Count() - 1); // Move to last

but know what is the position? if i need item as second menu item, how this work?i use: $menu->moveItem(“Download”, $menu->Count() 2);

but didn’t work, iten just show using -1thanks

christ2000 wrote:
i use: $menu->moveItem(“Download”, $menu->Count() 2);

Did you mean:$menu->Count() - 2Note: Make sure your menu items count is larger than 2 or the expression returns a negative value.