Addin menu item to administrator menu

Hi,



I added new menu items to administrator menu but I can’t find the place, where i could give the new item a sub header and an icon.



This is what i mean:





So can anyone give me a clue, what i should edit to add and menu item icon and subheader? :)



All the best,

KMI

You do the sub-items in the same XML menu schema as your main item.

It seems that the images are background images named the same as the XML 'name' element.

If you use Firebug to look at the existing menu items, you'll see what I mean.

Kind of a goofy way to do it rather than have a left-floated image and then the item name…

Mix old style with the new, I guess… Sure doesn't separate the presentation layer from the business layer since the name of the item is used to resolve what imagery to display via CSS.

Indeed, thank you!



If i would have a XML menu item called , then i would have to make an icon to “/skins/basic/admin/images/icons/menu” and add few lines to styles.css:





#menu li ul li.companiesa, #menu li.active ul li.companiesa {

background: url(images/icons/menu/company_descriptions.png) 11px 10px no-repeat;

}



And to add a description below the menu item picture and title i would have to make a new language variable like so: companies_menu_description (“_menu_description” is added to XML item). The script looks for such an item.



Thanks again, now i have a nice menu:)



Regards, KMI

[quote name=‘KMI’ timestamp=‘1310642205’ post=‘117289’]



This is what i mean:





[/quote]

Does anyone know how to add a item to the administrator menu that goes to an external url, instead of a dispatch? I am trying to add a menu item to an external link, a third party store locator, but it looks like those schema items only allow for internal pages assigned a dispatch.

Create a controller that took you where you want to go:

in addons/my_changes/controllers/admin/my_changes.php add:

if( $mode == 'go' )

fn_redirect(“URL OF YOUR REMOTE SITE”);



Then use dispatch=“my_changes.go”.

[quote name=‘KMI’ timestamp=‘1310642205’ post=‘117289’]

Hi,



I added new menu items to administrator menu but I can’t find the place, where i could give the new item a sub header and an icon.



This is what i mean:





So can anyone give me a clue, what i should edit to add and menu item icon and subheader?



All the best,

KMI

[/quote]



KMI,



Can you tell me how you added the New Menu Item to the Administrator Menu?



Regards,

David

Hai I have added a menu item in admin with add-on called “vehicles” but it is showing “_vehicles” as name and “_menu_description” as description. Any idea how to and where to change these names…

Also , I have given href=“vehicles.manage” in “schemas/menu/menu.post.php” … but no idea how to create that page…currently it is showing “404 Page Not Found” message.



Please help

Hai I have added a menu item in admin with add-on called "vehicles" but it is showing "_vehicles" as name and "_menu_description" as description. Any idea how to and where to change these names..
Also , I have given href="vehicles.manage" in "schemas/menu/menu.post.php" .. but no idea how to create that page..currently it is showing "404 Page Not Found" message.

Please help

Hi,

Me too sink in the same boat. Did you figured the solution?

Please do post here.

_vehicles (with underscode) means that there is no vehicles language variable in the database. Just add it in the Administration -> Languages -> Translations page

So is there an add-on to create new items in admin menu, or adding a new page to admin? and vendor?

Or is there an easy way of doing this that I can't find?

@dynamok, can you give an example of what you're trying to accomplish?

A page would have specific data and menu item would reference specific controllers.

Generally one creates an addon to fetch the data and then present it which includes the menu item to access it.

Your needs are not clear.

So is there an add-on to create new items in admin menu, or adding a new page to admin? and vendor?

Or is there an easy way of doing this that I can't find?

There is no easy way to add it form the admin panel. But menu can be extended by the addon. Just find one item menu from any addon and use it as example