Page 1 of 1
Admin Menu hook?
Posted: Mon Sep 27, 2010 7:09 pm
by Hildebrando
It's possible add a new option to the admin menu without write the file
admin/view/template/common/header.tpl? There is any hide hook?
If i install a commercial mod which add an option to the menu writting the file header.tpl and
after a while i bought another mod who also writes the header.tpl, the second mod erase the
menu options from the first mod!!
any help?
Hilde
Re: Admin Menu hook?
Posted: Mon Sep 27, 2010 10:57 pm
by JAY6390
This doesn't exist, you'll need to edit the template file manually to add the items individually (and it's advised rather than overwriting files)
Re: Admin Menu hook?
Posted: Wed Sep 29, 2010 4:54 am
by hansvh
Do you think there will ever be a solution for this? It would be greatly appreciated.
Re: Admin Menu hook?
Posted: Wed Sep 29, 2010 5:04 am
by JAY6390
Depends on the flow of the cart development in the future, hard to say really
Re: Admin Menu hook?
Posted: Wed Sep 29, 2010 5:07 am
by Qphoria
One temp solution that we might be able to hack in without angering the overlord (Daniel) is to make an ajax callback script that can read a new admin_menu db table and add the menus to the pre-rendered filebased menu. Then in that db table you could specify position, title, and href
Re: Admin Menu hook?
Posted: Wed Sep 29, 2010 5:18 am
by Xsecrets
Qphoria wrote:One temp solution that we might be able to hack in without angering the overlord (Daniel) is to make an ajax callback script that can read a new admin_menu db table and add the menus to the pre-rendered filebased menu. Then in that db table you could specify position, title, and href
this would be very nice to have. It's always driven me crazy that every mod which needs an admin page has to edit the header files.
Re: Admin Menu hook?
Posted: Wed Sep 29, 2010 5:25 am
by JAY6390
Yeah, not exactly ideal to have to edit in the items. Obviously the menu would need to be cached for each user group, and the cache's cleared on each update of the menu items
Re: Admin Menu hook?
Posted: Thu Sep 30, 2010 3:00 am
by hansvh
Thanks for the answer. This sounds great to me. I'll cross my fingers.
Re: Admin Menu hook?
Posted: Thu Sep 30, 2010 3:05 am
by Xsecrets
JAY6390 wrote:Yeah, not exactly ideal to have to edit in the items. Obviously the menu would need to be cached for each user group, and the cache's cleared on each update of the menu items
why's that? I mean currently the user groups don't affect the menus in any way at all anyways. Of course if they ever get around to only displaying the menu items a user has access to then yeah you'd have to do that, or for that matter who really cares about cache? I mean it's not that many sites that are going to have enough admin users on the site all day long to really make any perceptible difference with it not being cached.
Re: Admin Menu hook?
Posted: Thu Sep 30, 2010 3:09 am
by JAY6390
Yeah, it'd make sense to have that added really when it's being implemented, rather than just one factor of it, plus quite a few people have requested it
Re: Admin Menu hook?
Posted: Thu Sep 30, 2010 4:11 am
by Xsecrets
JAY6390 wrote:Yeah, it'd make sense to have that added really when it's being implemented, rather than just one factor of it, plus quite a few people have requested it
well I totally agree I'd love to see that added in as well as the option for a user to be able to change their password without also having the option to set themselves as top administrator.
Re: Admin Menu hook?
Posted: Thu Sep 30, 2010 4:28 am
by Qphoria
Xsecrets wrote:
well I totally agree I'd love to see that added in as well as the option for a user to be able to change their password without also having the option to set themselves as top administrator.
blah blah blah . You want the world on a silver platter as well princess!?!

Re: Admin Menu hook?
Posted: Thu Sep 30, 2010 5:39 am
by JAY6390
lmao I don't think that's too much to ask for :p