CoffeeFreak – Blank Magento extension for building main admin menu with sidebar and tabs

12 Comments 26th AUG 2009 | Posted by Branko Ajzele in Magento

CoffeeFreak – Blank Magento extension for building main admin menu with sidebar and tabs

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.

NoSidebar

SidebarInView

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.

If you like what you read, please share it.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Yahoo! Bookmarks
  • Reddit
  • Technorati
  • Twitter
  • StumbleUpon
  • LinkedIn
  • Netvibes
  • NewsVine
  • Sphinn
  • Tumblr
  • Posterous

To post code in comments, place your code inside [code] and [/code] tags.

There are 12 comments (Add Yours +)

  • 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.

  • playing around for a little bit, i’ve found a solution:

    $this -> loadLayout();
    $this -> _setActiveMenu(‘mymenu1′);

    and it works fine ;)

  • Thanks, it’s a grate Tutorial and help me much

  • 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.

  • 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 :)

  • 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.

  • 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!! :)

  • 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)

  • Nobody? :( please….

  • 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

  • Daniel Landi Says

    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!

  • Richard Creek Says

    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.

Leave a Comment

Please wrap all source codes with [code][/code] tags.
Magento Design and Development | Magento SEO | iPhone Application Development Web Application Development with ZEND | WordPress Ecommerce | WordPress development
Sitemap

Inchoo - webappsolutions | 2009