activo_categoryurlseo - Version 1.0.0

Version Notes

This simple FREE extension can flatten your store URL structure and drastically improve your SEO in just few simple clicks.

Download this release

Release Info

Developer Activo Extensions
Extension activo_categoryurlseo
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/local/Activo/Categoryurlseo/Helper/Category.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Catalog
23
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Catalog category helper
29
+ *
30
+ * @category Mage
31
+ * @package Mage_Catalog
32
+ * @author Magento Core Team <core@magentocommerce.com>
33
+ */
34
+ class Activo_Categoryurlseo_Helper_Category extends Mage_Catalog_Helper_Category
35
+ {
36
+ /**
37
+ * Retrieve clear url for category as parrent
38
+ *
39
+ * @param string $url
40
+ * @param bool $slash
41
+ * @param int $storeId
42
+ *
43
+ * @return string
44
+ */
45
+ public function getCategoryUrlPath($urlPath, $slash = false, $storeId = null)
46
+ {
47
+ if (Mage::getStoreConfig('activo_categoryurlseo/global/enabled')==0)
48
+ {
49
+ return parent::getCategoryUrlPath($urlPath, $slash, $storeId);
50
+ }
51
+ else
52
+ {
53
+ return '';
54
+ }
55
+ }
56
+ }
app/code/local/Activo/Categoryurlseo/Helper/Data.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Activo OpenSource
4
+ *
5
+ * LICENSE
6
+ *
7
+ * This source file is subject to the new BSD license that is bundled
8
+ * with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://store.delorumcommerce.com/license/new-bsd
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@tinybrick.com so we can send you a copy immediately.
14
+ *
15
+ * @category Activo
16
+ * @package Activo_BulkImages
17
+ * @copyright Copyright (c) 2011 Activo Inc. (http://www.activo.com)
18
+ * @license OSL 3.0
19
+ */
20
+
21
+ class Activo_Categoryurlseo_Helper_Data extends Mage_Core_Helper_Abstract
22
+ {
23
+ }
app/code/local/Activo/Categoryurlseo/etc/config.xml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Activo_Categoryurlseo>
5
+ <version>1.0.0</version>
6
+ </Activo_Categoryurlseo>
7
+ </modules>
8
+
9
+ <global>
10
+ <helpers>
11
+ <categoryurlseo>
12
+ <class>Activo_Categoryurlseo_Helper</class>
13
+ </categoryurlseo>
14
+ <catalog>
15
+ <rewrite>
16
+ <category>Activo_Categoryurlseo_Helper_Category</category>
17
+ </rewrite>
18
+ </catalog>
19
+ </helpers>
20
+ <models>
21
+ <categoryurlseo>
22
+ <class>Activo_Categoryurlseo_Model</class>
23
+ </categoryurlseo>
24
+ </models>
25
+ </global>
26
+ <adminhtml>
27
+ <acl>
28
+ <resources>
29
+ <admin>
30
+ <children>
31
+ <system>
32
+ <children>
33
+ <config>
34
+ <children>
35
+ <activo_categoryurlseo>
36
+ <title>SEO Friendly Category</title>
37
+ </activo_categoryurlseo>
38
+ </children>
39
+ </config>
40
+ </children>
41
+ </system>
42
+ </children>
43
+ </admin>
44
+ </resources>
45
+ </acl>
46
+ </adminhtml>
47
+ <default>
48
+ <activo_categoryurlseo>
49
+ <global>
50
+ <enabled>1</enabled>
51
+ </global>
52
+ </activo_categoryurlseo>
53
+ </default>
54
+ </config>
app/code/local/Activo/Categoryurlseo/etc/system.xml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category
23
+ * @package _home
24
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+ <config>
29
+ <tabs>
30
+ <activo translate="label">
31
+ <label>Activo Extensions</label>
32
+ <sort_order>101</sort_order>
33
+ </activo>
34
+ </tabs>
35
+ <sections>
36
+ <activo_categoryurlseo translate="label" module="categoryurlseo">
37
+ <class>separator-top</class>
38
+ <label>SEO Friendly Category</label>
39
+ <tab>activo</tab>
40
+ <frontend_type>text</frontend_type>
41
+ <sort_order>67</sort_order>
42
+ <show_in_default>1</show_in_default>
43
+ <show_in_website>1</show_in_website>
44
+ <show_in_store>1</show_in_store>
45
+ <groups>
46
+ <global translate="label">
47
+ <label>SEO Friendly Category Oprions</label>
48
+ <expanded>1</expanded>
49
+ <sort_order>100</sort_order>
50
+ <show_in_default>1</show_in_default>
51
+ <show_in_website>1</show_in_website>
52
+ <show_in_store>1</show_in_store>
53
+ <fields>
54
+ <enabled translate="label">
55
+ <label>Enabled?</label>
56
+ <frontend_type>select</frontend_type>
57
+ <source_model>adminhtml/system_config_source_yesno</source_model>
58
+ <sort_order>10</sort_order>
59
+ <show_in_default>1</show_in_default>
60
+ <show_in_website>1</show_in_website>
61
+ <show_in_store>1</show_in_store>
62
+ <comment>Select Yes if you wish to ignore the parent category(s) in the Category URLs. Notice once you change this value you may need to reindex the Catalog URL Rewrites.</comment>
63
+ </enabled>
64
+ </fields>
65
+ </global>
66
+ </groups>
67
+ </activo_categoryurlseo>
68
+ </sections>
69
+ </config>
package.xml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>activo_categoryurlseo</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>This simple FREE extension can flatten your store URL structure and drastically improve your SEO in just few simple clicks.</summary>
10
+ <description>&lt;h4&gt;Overview&lt;/h4&gt;&#xD;
11
+ &#xD;
12
+ &lt;p&gt;If your online store has a complex categories structure with many levels of subcategories, Magento will create really long URLs for the products in these subcategories, including the full categories hierarchy in the URL.&lt;/p&gt;&#xD;
13
+ &lt;p&gt;This can be a real drag for your product SEO since Google usually pays attention only to first few words in the URL.&lt;/p&gt;&#xD;
14
+ &lt;p&gt;This FREE &lt;strong&gt;SEO Friendly Categories&lt;/strong&gt; extension lets you flatten your URL structure by using only the last subcategory name in the URL. So instead of &lt;code&gt;mystore.com/category/subcategory1/subcategory2/subcategory3&lt;/code&gt; you will have just &lt;code&gt;mystore.com/subcategory3&lt;/code&gt; in your URL.&lt;/p&gt;&#xD;
15
+ &lt;p&gt;You can even customize how that subcategory will look in the URL like by using the URL Key parameter in the category configuration.&lt;/p&gt;&#xD;
16
+ &#xD;
17
+ &lt;p&gt;&amp;nbsp;&lt;/p&gt;&#xD;
18
+ &#xD;
19
+ &lt;h4&gt;Highlights&lt;/h4&gt;&#xD;
20
+ &lt;p&gt;&lt;ul&gt;&#xD;
21
+ &lt;li&gt;Drastically improves your categories' and products' SEO&lt;/li&gt;&#xD;
22
+ &lt;li&gt;Gives you full control over product, category and subcategory URLs&lt;/li&gt;&#xD;
23
+ &lt;li&gt;Creates flat URL structure for categories&lt;/li&gt;&#xD;
24
+ &lt;li&gt;Uses Magento's own URL rewriting mechanism for improved compatibility&lt;/li&gt;&#xD;
25
+ &lt;li&gt;100% FREE&lt;/li&gt;&#xD;
26
+ &lt;/ul&gt;&lt;/p&gt;</description>
27
+ <notes>This simple FREE extension can flatten your store URL structure and drastically improve your SEO in just few simple clicks.</notes>
28
+ <authors><author><name>Activo Extensions</name><user>activo</user><email>extensions@activo.com</email></author></authors>
29
+ <date>2011-12-23</date>
30
+ <time>01:05:07</time>
31
+ <contents><target name="magelocal"><dir name="Activo"><dir name="Categoryurlseo"><dir><dir name="Helper"><file name="Category.php" hash="f57ed5be33c88d2de3082d62182dea0c"/><file name="Data.php" hash="6892bf5f068f01ecbe4bc746ed0be85b"/></dir><dir name="etc"><file name="config.xml" hash="a8ab9f1efc96fef3d4584a340e4c356d"/><file name="system.xml" hash="9e14735283e6600bfca941f3ca40296a"/></dir></dir></dir></dir></target></contents>
32
+ <compatible/>
33
+ <dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
34
+ </package>