Magento custom designed gallery
6 Comments 31st OCT 2009 | Posted by Vedran Subotic in Magento

Magento custom designed gallery plugin contains two modules.
You can guess, one is for displaying images on frontend and second one is for handling images and categories in backend.
I will not write too much about this modules because there are too much files and it will take too much time to describe.
Most of things used in this modules are already described by my working colleagues.
Backend module is based on interface for adding images of products in magento shop.
When you integrate it into your shop it will install two additional custom tables in database which will store data of your gallery (categories and images)

Images on frontend handles Inchoo_GallFront module.
To see changes on frontend enter link http://www.your-web-shop.com/index.php/inchoogallery/, this is handled in config file of Inchoo_GallFront at:
<frontend>
<routers>
<inchoogallery>
<use>standard</use>
<args>
<module>Inchoo_GallFront</module>
<frontname>inchoogallery</frontname>
</args>
</inchoogallery>
</routers>
</frontend>
In Inchoo_GallFront_IndexController find indexAction(), and you will see that there is custom template file ‘gallery/demo.phtml’
(rememer that this is based on default frontend theme so do not forget to copy this files/folder if you use another theme).

All you need to do is rearange categories and images on frontend.
In ‘gallery/demo.phtml’ file you have two arrays which you have to modify and display pictures from categories as you wish.
Here is set of files you can download and install: Magento custom designed gallery
Enjoy coding.

















December 15th, 2009 at 14:09
I want put this gallery into my home page (not in inchogallery). Ho I can do it? Thanks!
December 15th, 2009 at 15:11
@Oleksii
Here is working example of overriding controllers, Models and Blocks which developed my working colleague Branko Ajzele.
You should study this module and you will be able to override anything you want and put the gallery wherever you want;
link: http://inchoo.net/ecommerce/magento/adding-a-new-tab-under-one-page-checkout-full-working-module/
December 15th, 2009 at 19:03
Transform call through template to call through Block would be good! But I don’t know how it it to do… I studies that, but litle example may help me
December 23rd, 2009 at 10:39
Amazing plug-in, you saved my life!
Thanks for this Christmas gift…
December 23rd, 2009 at 11:16
@Matte
No Matte, thank you for your reply.
Hope that you have more lives than a cat
January 27th, 2010 at 11:41
Hello Vedran. Can you help. I want to display not all images on the page. I t should be images for one category which I will choose by clicking. How can I get id from $image and from category and check for corecpond. I think should be like that, but need your opinion $category->Mage::getModel(‘cpa/img’)->getCollection()->addFieldToFilter(‘category_id’, array(‘in’=>array($id)));
you can look what I want in my site http://www.bluebirdcard.com/index.php/inchoogallery