How can I add a new menu item in the admin panel and that menu will doing for registration to setup a new account at some external signature service
Just put a menu.xml in your modules folder in the same format like the menu.xml from the admin folder.
hello sir,
I m new with oxid, can you please explain me, how can I add new menu and sub menu in admin panel just below Service.
thanks,
Abrar
Hello Abrar,
just edit the menu.xml and you’ll see the given structure there
rgds
thank you Marco,
I done it
Hello sir,
I having problem ,
when i m adding new variable in oxid/out/admin/en/lang.php
’mxnewmenu’ => ‘New Sub Menu’,
‘mxtestmn’ =>‘Test Menu’,
found error
ERROR : Translation for ‘mxnewmenu’ not found!
ERROR : Translation for ‘mxtestmn’ not found!
in menu.xml used following code :
<MAINMENU id=“mxtestmn”>
<SUBMENU id=“mxuserreg” cl=“userreg”>
</SUBMENU>
</MAINMENU>
please help me … whats wrong with this code
hey I Got solution the problem is coming couse of i am not deleting tmp folder files
Thanks,
Abrar
Hi,
[QUOTE=abrar;21112]hey I Got solution the problem is coming couse of i am not deleting tmp folder files[/QUOTE]
Yep. While developing, it is probably helpful to have MaFi’s module installed:
http://www.oxid-esales.com/en/exchange/extensions/delete-tmp
Regards
Editing admin/menu.xml manually works for me but in terms of configuration and source management this seems not an ideal solution to me. Updates will mean merger work which I would like to avoid.
[QUOTE=MBa;20185]Just put a menu.xml in your modules folder in the same format like the menu.xml from the admin folder.[/QUOTE]
This would be a good solution. I tried it but unfortunately it does nothing to the menu. Maybe I got something wrong. I created a file “doc_root/modules/menu.xml” and put the following in:
<?xml version="1.0" encoding="ISO-8859-15"?>
<OX>
<OXMENU id="NAVIGATION_MYADMIN">
<MAINMENU id="mxmy">
<SUBMENU id="myfunctionality1" cl="myfunctionality1" />
<SUBMENU id="myfunctionality2" cl="myfunctionality2" />
</MAINMENU>
</OXMENU>
</OX>
So, is this really possible at all and if yes, what is the correct method?
Regards,
Pascal
Okay, here comes my final solution (CE 4.2.0):
Instead of adding the menu entries to admin/menu.xml, put them in admin/user.xml.
This is still not the ideal solution but at least you do not have to tamper with the core menu (who knows what future releases will bring). user.xml is empty by default, so the chance to miss important changes throughout newer releases is lower.
Regards and out
[QUOTE=PCO;24985]Editing admin/menu.xml manually works for me but in terms of configuration and source management this seems not an ideal solution to me. Updates will mean merger work which I would like to avoid.
This would be a good solution. I tried it but unfortunately it does nothing to the menu. Maybe I got something wrong. I created a file “doc_root/modules/menu.xml” and put the following in:
<?xml version="1.0" encoding="ISO-8859-15"?>
<OX>
<OXMENU id="NAVIGATION_MYADMIN">
<MAINMENU id="mxmy">
<SUBMENU id="myfunctionality1" cl="myfunctionality1" />
<SUBMENU id="myfunctionality2" cl="myfunctionality2" />
</MAINMENU>
</OXMENU>
</OX>
So, is this really possible at all and if yes, what is the correct method?
Regards,
Pascal[/QUOTE]
Im instressted in a answer to this question as well. So Im bumping this thread. The solution with editing the user.xml is not satisfying, as it would logically be overwritten as well in a new installation or… etc etc.
Ok, here a example, it is in /modules/module_name Folder.
<?xml version="1.0" encoding="iso-8859-1"?>
<OX>
<OXMENU id="NAVIGATION_ESHOPADMIN">
<MAINMENU id="testMenu">
<SUBMENU id="testSubMenu" cl="test_sub_menu" list="test_sub_menu_list">
<TAB id="testSubMenu_App1" cl="app_1" />
<TAB id="testSubMenu_App2" cl="app_1" />
</SUBMENU>
</MAINMENU>
</OXMENU>
</OX>
Of course, you need to
- reload the page (Frames)
- defines language-variables with the vector of the id’s in the xml (after clean the cache)
- admin-views with the name of the cl-attributes.
If you have more problems, try to find in oxidexchange a gpl-based admin module and look how this was made.
Yes, the admin part of oxid is not what I call ‘state of the art’. I hope this changes in further versions.
Awesome, thank you, it works. I tried this yesterday, but I must have forgotten to clean the tmp folder. And I mostly tried to get it to show when having it in the folder: /modules/module_name_folder/admin which doesnt work.
Well, thanks alot for this I had lost fait in getting it to work hehe.