CoffeeFreak – Blank Magento extension for building main admin menu with sidebar and tabs
12 Comments 26th AUG 2009 | Posted by Branko Ajzele in Magento

My previous article, CoolDash – Blank Magento extension for building admin system configuration area, was about blank start-up extension for building System > Configuration admin area. I used a lot of “funny” attribute names so that “get around” gets some speed. This extension is somewhat similar to previous one, except its meant to be a blank start-up extension for building items under main admin menu with sidebar and tabs.
Keep in mind that, once again, extension name is something I popped out of my head while I was making myself a coffee:).
Below are two screenshots for you to see final result.
In short, this extension demonstrates the use of controllers (router definition under config file) and widgets in Magento.
Download Inchoo_CoffeeFreak extension for Magento.
Hope you find it useful.
To post code in comments, place your code inside [code] and [/code] tags.




















October 14th, 2009 at 15:44
Thanks for this nice example. Have you any idea, how to mark the menu item as active, if it is clicked? the build-in magento items are still active if you click one of them.
October 14th, 2009 at 15:52
playing around for a little bit, i’ve found a solution:
$this -> loadLayout();
$this -> _setActiveMenu(‘mymenu1′);
and it works fine
October 16th, 2009 at 9:57
Thanks, it’s a grate Tutorial and help me much
November 10th, 2009 at 22:07
Can you give an example of how to add a custom tab to the product edit page? I have tired without success other than adding to core code which I dont want to do.
January 27th, 2010 at 21:09
Hi there
thansk for the blank module – its good.
I’ve been searching around to find out how to add my admin module to an already existent tab, under the system->configuration menus…. rather than having it as a loan module at the top on that hoz menu.
do you guys have any information on this?
many thanks
btw, v nice design on this site
February 3rd, 2010 at 13:28
Hi,
I am new to Magento.. for the beginners like me this is very helpful.
Great work.
Ya.. just like above comment.. i too require a module in submenus not in main menu.
All the Best to your team.
April 12th, 2010 at 15:14
Hi thank you for this great example! I have a little problem: i’m trying to add a public function to the controller saveAction… but if I try to open
http://mymagento/admin/mymodule/save/key/xxxx
i’m redirected to the admin dashboard… http://mymagento/admin/mymodule/index/key/xxxx work well.
What i’m missing?
please help and thank you!!
April 12th, 2010 at 21:56
hi, sorry if i ask again, but can find a solution.
I can add new methods in controllers on the frontend, but i don’t know how to do it in admin…
i have a controller on a frontend and it is accessible by
http://mymagento/mymodule/
or
http://mymagento/mymodule/index
now i add a new function on this controller “save”
and i can go to access this on
http://mymagento/mymodule/index/save
i can’t replicate it on the backend… every new public function i add on the admin controller will redirect me to the admin dashboard…
Can somebody help me please? what i’m missing?
Thank you very much and sorry for my english (i’m from italy)
April 13th, 2010 at 14:17
Nobody?
please….
May 2nd, 2010 at 14:13
Hello,
This post was very helpful, thank you.
But I have a problem that I don’t understand -
When I add the file “Inchoo_CoffeeFreak.xml” to /app/etc/modules
I get the extension to work but it causes problems with some pages in the admin – The Index Index Management and other pages stop working (I get 404 Error).
When I delete this file (Inchoo_CoffeeFreak.xml) from the folder The pages start working again.
What can cause this? What should I do?
Thank you
June 16th, 2010 at 18:15
Hello,
First of all, congratulations for the post!!! It’s very good and works very well.
I was several days trying to do it and I was near to get it when I found your post and it helps me to solve all the problems with the tabs and active menu!.
I wanted to request you a post explain how to use this block to save data. For example to save some informations about a manufacturer.
Thanks!
August 12th, 2010 at 15:53
Hi, thanks for the tutorial. There’s a problem with it in magento 1.4.1.1 though, it breaks the index management page, makes it return a 404 error.