Post by Hildebrando » Mon Sep 27, 2010 7:09 pm

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
Last edited by Qphoria on Mon Sep 27, 2010 10:15 pm, edited 1 time in total.
Reason: changed title because it made no sense

Commercial Contributions:Bulk Specials| Bulk Update Prices|Search Tyre Pro
Free Contributions: Youtube video (oc 1.5.x) | Search History Report (oc 1.5.x) | Product Filter by Category (oc 1.5.x)|Youtube Popup
More Free & commercial mods: www.fpress.com


User avatar
Active Member

Posts

Joined
Fri Mar 06, 2009 8:22 pm
Location - Spain

Post by JAY6390 » Mon Sep 27, 2010 10:57 pm

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)

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by hansvh » Wed Sep 29, 2010 4:54 am

Do you think there will ever be a solution for this? It would be greatly appreciated.

Extensions: Norwegian Language Pack | Pakkesporing fra Posten Norge


Newbie

Posts

Joined
Wed Sep 29, 2010 4:42 am

Post by JAY6390 » Wed Sep 29, 2010 5:04 am

Depends on the flow of the cart development in the future, hard to say really

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Qphoria » Wed Sep 29, 2010 5:07 am

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Xsecrets » Wed Sep 29, 2010 5:18 am

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.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by JAY6390 » Wed Sep 29, 2010 5:25 am

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

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by hansvh » Thu Sep 30, 2010 3:00 am

Thanks for the answer. This sounds great to me. I'll cross my fingers.

Extensions: Norwegian Language Pack | Pakkesporing fra Posten Norge


Newbie

Posts

Joined
Wed Sep 29, 2010 4:42 am

Post by Xsecrets » Thu Sep 30, 2010 3:05 am

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.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by JAY6390 » Thu Sep 30, 2010 3:09 am

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

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Xsecrets » Thu Sep 30, 2010 4:11 am

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.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by Qphoria » Thu Sep 30, 2010 4:28 am

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!?! 8)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by JAY6390 » Thu Sep 30, 2010 5:39 am

lmao I don't think that's too much to ask for :p

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 104 guests