magento extension

Slide Image Gallery


We are pleased to introduce the Slide Image Gallery for Magento, a useful extension that allows you to create own Galleries with Images in your Magento store.
This extension is easy to use, easy to install, and have all functions that should be included in a Photogallery (see feature list below).
Admin:

  • Manage Galleries(image categories) add, edit, delete, activate, deactivate;
  • Manage Images add, edit, delete, activate, deactivate;
  • Each Image could have Description;
  • Each Gallery could have own Meta Tags and Meta Description or displays deafult(SEO);
  • Each Gallery could have description;
  • Ability assign Image to more than one Gallery;
  • Ability sort Image into Gallery(useing Drag-and-Drop);
  • Ability use predefined themes, and create own theme through Wio Gallery Configuration;


Frontend:

  • Easy integrated with any theme;
  • Galleries Page, displays all created and active Galleries;
  • Gallery view Page;
  • View Images as Grid or as Gallery view(with ability list images, next previos icon);
  • Gallery View have thumb of images, with ability configure theirs quantity;
  • Slideshow for Gallery View;

Tags: , , ,

Saturday, October 1st, 2011 Magento Development No Comments

Hello World Magento

Create hello world extension for magento.
All process could be diveded on six steps:
1. Create xml  file for activate extension:

<?xml version="1.0"?>
<config>
    <modules>
        <Someextension_Helloworld>
            <active>true</active>
            <codePool>local</codePool>
        </Someextension_Helloworld>
     </modules>
</config>

Save file at: /app/etc/modules/Someextension_Helloworld.xml

2. Create xml – configuration file for extension:

<?xml version="1.0"?>

<config>
    <modules>
       <Someextension_Helloworld>
          <version>0.1.0</version>
       </Someextension_Helloworld>
    </modules>
    <frontend>
       <routers>
          <someextension_helloworld>
             <use>standard</use>
             <args>
                <module>Someextension_Helloworld</module>
                <frontName>someextension-helloworld</frontName>
             </args>
          </someextension_helloworld>
       </routers>
    <layout>
       <updates>
          <someextension_helloworld>
             <file>helloworld.xml</file>
           </someextension_helloworld>
        </updates>
     </layout>
 </frontend>
 <global>
    <blocks>
       <someextension_helloworld>
          <class>Someextension_Helloworld_Block</class>
       </someextension_helloworld>
    </blocks>
 </global>
</config>

Save file at: app/code/local/Someextension/Helloworld/etc/config.xml
In this file we define routers, configuration file for layout updates and class for Block files.

3. Create controller file:

<?php

class Someextension_Helloworld_IndexController
extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {
        //here could be code
        //show layout
        $this->loadLayout();
        $this->renderLayout();
    }
}
?>

Save file at: app/code/local/Someextension/Helloworld/controllers/IndexController.php

Actually, after this, we could see that extension is working http://www.yourdomain.com/index.php/someextension-helloworld, but its empty page.  For complete extension we should create xml-configuration file for layout and template;

4. Create xml-configuration file for layout:

<?xml version="1.0"?>
<layout version="0.1.0">
   <someextension_helloworld_index_index>
      <reference name="root">
         <action method="setTemplate">
            <template>page/1column.phtml</template>
         </action>
      </reference>
      <reference name="content">
         <block type="someextension_helloworld/hello"
             template="helloworld/index.phtml" />
      </reference>
   </someextension_helloworld_index_index>
</layout>

Save file at: app/design/frontend/default/default/layout/helloworld.xml
In this  file we define  “Block”  file for template (Hello.php) and template which showed.

5. Create template:

As we code in previos file that template for layout is index.phtml, create it:

<p> HELLO WORLD </p>

Save file at:app/design/frontend/default/default/template/helloworld/index.phtml

6. Create Block file to activate viewing template:

class Someextension_Helloworld_Block_Hello
   extends Mage_Core_Block_Template
{
   protected function _prepareLayout()
   {
       parent::_prepareLayout();
   }
}

Save file at: app/code/local/Someextension/Helloworld/Block/Hello.php

That’s all.

Important: DO NOT FORGET DISABLE CACHE Admin->System->Cache Management

Tags: ,

Tuesday, June 15th, 2010 Magento Development 1 Comment