Blank Magento widget to get you started with Magento widget development

Featured Image

Hello inchoo readers. As we are nearing the Christmas time, I felt I could write down some free code and share with you. Yesterday I got all excited seeing Magento 1.4 beta1 available for download. As you can guess, it did not took me long to download and install it. One of the most interesting features, for me, are the widgets.

Personally I see the widgets plus WYSIWYG implementation as a great boost to user (site owner) friendly admin section. It can be a real mess having your client call {{block type=”myextension/myclass” … bla bla bla… }} code each time he wishes to show some custom coded block on certain pages or so. Magento widgets handle this quite nicely, all you have to do is point and click :) .

Also, keep in mind that widget functionality is available not only on the CMS pages but on static blocks, product descriptions, category descriptions etc. This is extremely useful and usage scenario is breathtaking. One can build all sort of features based on the purpose of the widget.

Below you will see few screenshots of my widget implementation, how it looks in admin section and in frontend.

Also, here [ ActiveCodeline_WidgetOne.tar.gz ] is the attached fully functional “blank” Magento widget extension. Hopefully it will help you learn initial widget requirements, if you are new to the concept and development in Magento.

7
Top

Enjoyed this post?

Subscribe to our RSS Feed, Follow us on Twitter and spread it to your friends!

Author

Branko is Inchoo's CTO with over 3 years of active / everyday full time Magento development.

Other posts from this author

Discussion 7 Comments

Add Comment
  1. Thanks for the file – I am in the process of phpxrefing the beta as we speak and will have it available online shortly (www.tweakmag.com/phpxref). Can’t wait to check out the new release. Thanks again.

  2. smily

    Thank you for the widget examples, they’ve been really helpful in learning.

  3. XConsider

    This BlankWidget looks nice here in the Post.
    But it looks like the archive is damaged?

    btw. u got the best Blog ever seen

  4. @XConsider: this will probably extract the archive:

    gunzip ActiveCodeline_WidgetMiniFeedReader.tar.gz
    tar xvf ActiveCodeline_WidgetMiniFeedReader.tar

    Taken from someone else’s comment on another post here.

  5. Ranga

    I think that tar file was damaged and Pls check the same.

  6. Guru'd

    Was able to open the corrupt file. Here’s the original auther, Branko Ajzele, http://activecodeline.com

    And you can find an intact version here.

    http://ajzele.net/wp-content/uploads/2009/12/ActiveCodeline_WidgetOne.tar.gz

    Thanks for the great content, you’ve helped me out on more than one head scratcher. :-)

  7. Mlearner

    Great start up for beginners. Thanks!

Add Your Comment

Please wrap all source codes with [code][/code] tags.
Top