Klevis_CategoryBannerLink - Version 0.0.1

Version Notes

First release.

Download this release

Release Info

Developer Klevis Miho
Extension Klevis_CategoryBannerLink
Version 0.0.1
Comparing to
See all releases


Version 0.0.1

app/code/community/Klevis/CategoryBannerLink/etc/config.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Klevis_CategoryBannerLink>
5
+ <version>0.0.1</version>
6
+ </Klevis_CategoryBannerLink>
7
+ </modules>
8
+ <global>
9
+ <resources>
10
+ <Klevis_CategoryBannerLink_setup>
11
+ <setup>
12
+ <module>Klevis_CategoryBannerLink</module>
13
+ <class>Mage_Catalog_Model_Resource_Setup</class>
14
+ </setup>
15
+ </Klevis_CategoryBannerLink_setup>
16
+ </resources>
17
+ </global>
18
+ </config>
app/code/community/Klevis/CategoryBannerLink/sql/Klevis_CategoryBannerLink_setup/install-0.0.1.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $this->startSetup();
3
+ $this->addAttribute('catalog_category', 'category_banner_link', array(
4
+ 'group' => 'General', //tab name where it should go - use General or General Information - if the tab does not exist it will be created
5
+ 'type' => 'varchar', //the type of the attribute
6
+ 'backend' => '', //a backend model if needed
7
+ 'frontend_input' => '',
8
+ 'frontend' => '',
9
+ 'label' => 'Banner Link',
10
+ 'input' => 'text',
11
+ 'class' => '',
12
+ 'source' => '', //a source model if needed - only for selects or multiselects
13
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL, //attribute scope
14
+ 'visible' => true,
15
+ 'frontend_class' => '',
16
+ 'required' => false, //required or not
17
+ 'user_defined' => true,
18
+ 'default' => '',
19
+ 'unique' => false, //unique or not
20
+ 'note' => ''
21
+ ));
22
+ $this->endSetup();
app/etc/modules/Klevis_CategoryBannerLink.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Klevis_CategoryBannerLink>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ <version>0.0.1</version>
8
+ </Klevis_CategoryBannerLink>
9
+ </modules>
10
+ </config>
package.xml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Klevis_CategoryBannerLink</name>
4
+ <version>0.0.1</version>
5
+ <stability>stable</stability>
6
+ <license>GNU General Public License</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Add a link to your category banner.</summary>
10
+ <description>Sometimes you need to add a promotion banner to a category and link it somewhere else. &#xD;
11
+ With this extension you can add a link to the category banner image.</description>
12
+ <notes>First release.</notes>
13
+ <authors><author><name>Klevis Miho</name><user>Klevis_Miho</user><email>klevisi@gmail.com</email></author></authors>
14
+ <date>2014-04-11</date>
15
+ <time>14:53:57</time>
16
+ <contents><target name="magecommunity"><dir name="Klevis"><dir name="CategoryBannerLink"><dir name="etc"><file name="config.xml" hash="ecc64032fa450844d55a8dc450661930"/></dir><dir name="sql"><dir name="Klevis_CategoryBannerLink_setup"><file name="install-0.0.1.php" hash="bc093347f0fab0a369a9bf4cc9c8820b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Klevis_CategoryBannerLink.xml" hash="9e49e893fc86d7181d9af93bf96efb65"/></dir></target></contents>
17
+ <compatible/>
18
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
19
+ </package>