activo_categoryurlseo - Version 1.0.3

Version Notes

Added the ability to manually specify a global top level string for refined SEO control.

Download this release

Release Info

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


Code changes from version 1.0.2 to 1.0.3

app/code/community/Activo/Categoryurlseo/Helper/Category.php CHANGED
@@ -50,7 +50,7 @@ class Activo_Categoryurlseo_Helper_Category extends Mage_Catalog_Helper_Category
50
  }
51
  else
52
  {
53
- return '';
54
  }
55
  }
56
  }
50
  }
51
  else
52
  {
53
+ return Mage::getStoreConfig('activo_categoryurlseo/global/toplevel');
54
  }
55
  }
56
  }
app/code/community/Activo/Categoryurlseo/Model/Url.php CHANGED
@@ -32,7 +32,8 @@ class Activo_Categoryurlseo_Model_Url extends Mage_Catalog_Model_Url
32
  $this->_addCategoryUrlPath($category);
33
  $categoryUrl = Mage::helper('catalog/category')->getCategoryUrlPath($category->getUrlPath(),
34
  false, $storeId);
35
- $requestPath = $categoryUrl . ($categoryUrl==''?'':'/') . $urlKey;
 
36
  } else {
37
  $requestPath = $urlKey;
38
  }
32
  $this->_addCategoryUrlPath($category);
33
  $categoryUrl = Mage::helper('catalog/category')->getCategoryUrlPath($category->getUrlPath(),
34
  false, $storeId);
35
+ $requestPath = $categoryUrl . '/' . $urlKey;
36
+ $requestPath = str_ireplace('//', '/', $requestPath);
37
  } else {
38
  $requestPath = $urlKey;
39
  }
app/code/community/Activo/Categoryurlseo/etc/config.xml CHANGED
@@ -53,6 +53,7 @@
53
  <activo_categoryurlseo>
54
  <global>
55
  <enabled>1</enabled>
 
56
  </global>
57
  </activo_categoryurlseo>
58
  </default>
53
  <activo_categoryurlseo>
54
  <global>
55
  <enabled>1</enabled>
56
+ <toplevel></toplevel>
57
  </global>
58
  </activo_categoryurlseo>
59
  </default>
app/code/community/Activo/Categoryurlseo/etc/system.xml CHANGED
@@ -61,6 +61,15 @@
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>
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
+ <toplevel translate="label">
65
+ <label>Manual Top Level</label>
66
+ <frontend_type>text</frontend_type>
67
+ <sort_order>20</sort_order>
68
+ <show_in_default>1</show_in_default>
69
+ <show_in_website>1</show_in_website>
70
+ <show_in_store>1</show_in_store>
71
+ <comment>Add a top level manual category that will apply to all products accross the store. No need for the preceeding forward slash, add a trailing forward slash if needed.</comment>
72
+ </toplevel>
73
  </fields>
74
  </global>
75
  </groups>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>activo_categoryurlseo</name>
4
- <version>1.0.2</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>
@@ -24,11 +24,11 @@
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>Fixed an issue with the double slash reported by users with newer versions of Magento.</notes>
28
  <authors><author><name>Activo Extensions</name><user>activo</user><email>extensions@activo.com</email></author></authors>
29
- <date>2012-06-21</date>
30
- <time>19:51:46</time>
31
- <contents><target name="magecommunity"><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="Model"><file name="Url.php" hash="1b8675ba5cc7e514fe84110ae173d895"/></dir><dir name="etc"><file name="config.xml" hash="f1c61d3bbec241cde8ddfef27f0f97e2"/><file name="system.xml" hash="9e14735283e6600bfca941f3ca40296a"/></dir></dir></dir><dir name="News"><dir><dir name="Model"><file name="Feed.php" hash="3ac6617af7eaceb5cac373a4f13a8b1b"/></dir><dir name="etc"><file name="config.xml" hash="16cfd0b7ac1e67d0d3534b99a6c1e512"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Activo_Categoryurlseo.xml" hash="cbb2d56a19efe3658ff0b6bf21376dd3"/><file name="Activo_News.xml" hash="1c8b4c7e70aa752c05241df66dd5d29b"/></dir></target></contents>
32
  <compatible/>
33
  <dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
34
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>activo_categoryurlseo</name>
4
+ <version>1.0.3</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>
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>Added the ability to manually specify a global top level string for refined SEO control.</notes>
28
  <authors><author><name>Activo Extensions</name><user>activo</user><email>extensions@activo.com</email></author></authors>
29
+ <date>2012-07-27</date>
30
+ <time>06:37:07</time>
31
+ <contents><target name="magecommunity"><dir name="Activo"><dir name="Categoryurlseo"><dir><dir name="Helper"><file name="Category.php" hash="5375fd8978c051b8421cc7e4a718eeea"/><file name="Data.php" hash="6892bf5f068f01ecbe4bc746ed0be85b"/></dir><dir name="Model"><file name="Url.php" hash="c65d311f28b4c4f171d702863e37e9fc"/></dir><dir name="etc"><file name="config.xml" hash="c6b25932abab4588478b2ccf46f5ee36"/><file name="system.xml" hash="d8d6fa1b7e04ada0c492b3738b6d9de7"/></dir></dir></dir><dir name="News"><dir><dir name="Model"><file name="Feed.php" hash="3ac6617af7eaceb5cac373a4f13a8b1b"/></dir><dir name="etc"><file name="config.xml" hash="16cfd0b7ac1e67d0d3534b99a6c1e512"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Activo_Categoryurlseo.xml" hash="cbb2d56a19efe3658ff0b6bf21376dd3"/><file name="Activo_News.xml" hash="1c8b4c7e70aa752c05241df66dd5d29b"/></dir></target></contents>
32
  <compatible/>
33
  <dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
34
  </package>