Creare_DynamicSitemap - Version 2.0.0

Version Notes

Updated to work on 1.4+ with admin configuration.

Download this release

Release Info

Developer Magento Core Team
Extension Creare_DynamicSitemap
Version 2.0.0
Comparing to
See all releases


Code changes from version 1.1.3 to 2.0.0

app/code/local/Creare/DynamicSitemap/Block/Dynamicsitemap.php CHANGED
@@ -3,42 +3,21 @@ class Creare_DynamicSitemap_Block_Dynamicsitemap extends Mage_Core_Block_Templat
3
 
4
  public function getCreareCMSPages(){
5
 
6
- $cms = Mage::getModel('cms/page')->getCollection()
7
- ->addStoreFilter(Mage::app()->getStore()->getId())
8
- ->addFieldToFilter('is_active',1)
9
- ->addFieldToFilter('identifier',array(array('nin'=>array('no-route','enable-cookies','empty'))));
10
  $url = Mage::getBaseUrl();
11
  $html = "";
12
  foreach($cms as $cmspage):
13
- $page = $cmspage->getData();
14
- if($page['identifier'] == "home"){
15
- $html .= "<li><a href=\"$url\" title=\"".$page['title']."\">".$page['title']."</a></li>\n"; // this is for a nice local link to home
16
- } else {
17
- $html .= "<li><a href=\"$url".$page['identifier']."\" title=\"".$page['title']."\">".$page['title']."</a></li>\n";
 
 
18
  }
19
  endforeach;
20
 
21
-
22
  return $html;
23
- }
24
-
25
- public function getCrearePopularProducts(){
26
-
27
- /* get the product id's */
28
-
29
- $products = array('4138','4137','4136','4132','4131','4125','4124','4120','3938','3932');
30
- $html = "";
31
-
32
- foreach($products as $productId):
33
- $product = Mage::getModel('catalog/product')->load($productId);
34
- $html .= "<li><a href=\"".$product->getUrlPath()."\" title=\"".$product->getName()."\">".$product->getName()."</a></li>\n";
35
- endforeach;
36
-
37
- return $html;
38
-
39
- }
40
-
41
-
42
-
43
 
44
  }
3
 
4
  public function getCreareCMSPages(){
5
 
6
+ $cms = Mage::getModel('cms/page')->getCollection();
 
 
 
7
  $url = Mage::getBaseUrl();
8
  $html = "";
9
  foreach($cms as $cmspage):
10
+ $page = $cmspage->getData();
11
+ if($page['identifier'] == "no-route" || $page['identifier'] == "enable-cookies" || $page['identifier'] == "empty"){ /* do nothing or something here */ } else {
12
+ if($page['identifier'] == "home"){
13
+ $html .= "<li><a href=\"$url\" title=\"".$page['title']."\">".$page['title']."</a></li>\n"; // this is for a nice local link to home
14
+ } else {
15
+ $html .= "<li><a href=\"$url".$page['identifier']."\" title=\"".$page['title']."\">".$page['title']."</a></li>\n";
16
+ }
17
  }
18
  endforeach;
19
 
 
20
  return $html;
21
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  }
app/code/local/Creare/DynamicSitemap/Helper/Data.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Creare_DynamicSitemap_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+ public function showCMS()
6
+ {
7
+ return Mage::getStoreConfig('dynamicsitemap/dynamicsitemap/showcms');
8
+ }
9
+
10
+ public function showCategories()
11
+ {
12
+ return Mage::getStoreConfig('dynamicsitemap/dynamicsitemap/showcategories');
13
+ }
14
+
15
+ public function showXMLSitemap()
16
+ {
17
+ return Mage::getStoreConfig('dynamicsitemap/dynamicsitemap/showxml');
18
+ }
19
+
20
+ public function showAccount()
21
+ {
22
+ return Mage::getStoreConfig('dynamicsitemap/dynamicsitemap/showaccount');
23
+ }
24
+
25
+ public function showContact()
26
+ {
27
+ return Mage::getStoreConfig('dynamicsitemap/dynamicsitemap/showcontact');
28
+ }
29
+ }
app/code/local/Creare/DynamicSitemap/controllers/IndexController.php CHANGED
@@ -7,7 +7,6 @@ class Creare_DynamicSitemap_IndexController extends Mage_Core_Controller_Front_A
7
  if ($headBlock = $this->getLayout()->getBlock('head')) {
8
  $headBlock->setTitle($title);
9
  }
10
-
11
  return parent::_prepareLayout();
12
  }
13
 
7
  if ($headBlock = $this->getLayout()->getBlock('head')) {
8
  $headBlock->setTitle($title);
9
  }
 
10
  return parent::_prepareLayout();
11
  }
12
 
app/code/local/Creare/DynamicSitemap/etc/config.xml CHANGED
@@ -1,31 +1,73 @@
1
  <?xml version="1.0"?>
2
  <config>
3
- <modules>
4
- <Creare_DynamicSitemap>
5
- <version>0.1.0</version>
6
- </Creare_DynamicSitemap>
7
- </modules>
8
- <frontend>
9
- <routers>
10
- <dynamicsitemap>
11
- <use>standard</use>
12
- <args>
13
- <module>Creare_DynamicSitemap</module>
14
- <frontName>sitemap</frontName>
15
- </args>
16
- </dynamicsitemap>
17
- </routers>
18
- <layout>
19
- <updates>
20
- <dynamicsitemap>
21
- <file>dynamicsitemap.xml</file>
22
- </dynamicsitemap>
23
- </updates>
24
- </layout>
25
- </frontend>
26
- <global>
27
- <blocks>
28
- <dynamicsitemap><class>Creare_DynamicSitemap_Block</class></dynamicsitemap>
29
- </blocks>
30
- </global>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
+ <modules>
4
+ <Creare_DynamicSitemap>
5
+ <version>2.0</version>
6
+ </Creare_DynamicSitemap>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <dynamicsitemap>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Creare_DynamicSitemap</module>
14
+ <frontName>sitemap</frontName>
15
+ </args>
16
+ </dynamicsitemap>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <dynamicsitemap>
21
+ <file>creare_dynamicsitemap.xml</file>
22
+ </dynamicsitemap>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <blocks>
28
+ <dynamicsitemap>
29
+ <class>Creare_DynamicSitemap_Block</class>
30
+ </dynamicsitemap>
31
+ </blocks>
32
+ <helpers>
33
+ <dynamicsitemap>
34
+ <class>Creare_DynamicSitemap_Helper</class>
35
+ </dynamicsitemap>
36
+ </helpers>
37
+ </global>
38
+ <default>
39
+ <dynamicsitemap>
40
+ <dynamicsitemap>
41
+ <showcms>1</showcms>
42
+ <showcategories>1</showcategories>
43
+ <showxml>0</showxml>
44
+ <showaccount>1</showaccount>
45
+ <showcontact>1</showcontact>
46
+ </dynamicsitemap>
47
+ </dynamicsitemap>
48
+ </default>
49
+ <adminhtml>
50
+ <acl>
51
+ <resources>
52
+ <all>
53
+ <title>Allow Everything</title>
54
+ </all>
55
+ <admin>
56
+ <children>
57
+ <system>
58
+ <children>
59
+ <config>
60
+ <children>
61
+ <dynamicsitemap>
62
+ <title>Creare Group - Dynamic Sitemap</title>
63
+ </dynamicsitemap>
64
+ </children>
65
+ </config>
66
+ </children>
67
+ </system>
68
+ </children>
69
+ </admin>
70
+ </resources>
71
+ </acl>
72
+ </adminhtml>
73
  </config>
app/code/local/Creare/DynamicSitemap/etc/system.xml ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <config>
2
+ <tabs>
3
+ <crearextend translate="label" module="dynamicsitemap">
4
+ <label>Crearextend</label>
5
+ <sort_order>100</sort_order>
6
+ </crearextend>
7
+ </tabs>
8
+ <sections>
9
+ <dynamicsitemap translate="label" module="dynamicsitemap">
10
+ <label>Dynamic Sitemap</label>
11
+ <tab>crearextend</tab>
12
+ <sort_order>1000</sort_order>
13
+ <show_in_default>1</show_in_default>
14
+ <show_in_website>1</show_in_website>
15
+ <show_in_store>1</show_in_store>
16
+ <groups>
17
+ <dynamicsitemap translate="label" module="dynamicsitemap">
18
+ <label>Dynamic Sitemap</label>
19
+ <frontend_type>text</frontend_type>
20
+ <sort_order>1000</sort_order>
21
+ <show_in_default>1</show_in_default>
22
+ <show_in_website>1</show_in_website>
23
+ <show_in_store>1</show_in_store>
24
+ <fields>
25
+ <showcms translate="label">
26
+ <label>Show CMS Pages</label>
27
+ <frontend_type>select</frontend_type>
28
+ <source_model>adminhtml/system_config_source_yesno</source_model>
29
+ <sort_order>10</sort_order>
30
+ <show_in_default>1</show_in_default>
31
+ <show_in_website>1</show_in_website>
32
+ <show_in_store>1</show_in_store>
33
+ </showcms>
34
+ <showcategories translate="label">
35
+ <label>Show Categories</label>
36
+ <frontend_type>select</frontend_type>
37
+ <source_model>adminhtml/system_config_source_yesno</source_model>
38
+ <sort_order>10</sort_order>
39
+ <show_in_default>1</show_in_default>
40
+ <show_in_website>1</show_in_website>
41
+ <show_in_store>1</show_in_store>
42
+ </showcategories>
43
+ <showxml translate="label">
44
+ <label>Show XML Sitemap</label>
45
+ <frontend_type>select</frontend_type>
46
+ <source_model>adminhtml/system_config_source_yesno</source_model>
47
+ <sort_order>10</sort_order>
48
+ <show_in_default>1</show_in_default>
49
+ <show_in_website>1</show_in_website>
50
+ <show_in_store>1</show_in_store>
51
+ <comment>Must have an XML sitemap created through Magento</comment>
52
+ </showxml>
53
+ <showaccount translate="label">
54
+ <label>Show Account Pages</label>
55
+ <frontend_type>select</frontend_type>
56
+ <source_model>adminhtml/system_config_source_yesno</source_model>
57
+ <sort_order>10</sort_order>
58
+ <show_in_default>1</show_in_default>
59
+ <show_in_website>1</show_in_website>
60
+ <show_in_store>1</show_in_store>
61
+ </showaccount>
62
+ <showcontact translate="label">
63
+ <label>Show Default Contact Link</label>
64
+ <frontend_type>select</frontend_type>
65
+ <source_model>adminhtml/system_config_source_yesno</source_model>
66
+ <sort_order>10</sort_order>
67
+ <show_in_default>1</show_in_default>
68
+ <show_in_website>1</show_in_website>
69
+ <show_in_store>1</show_in_store>
70
+ </showcontact>
71
+ </fields>
72
+ </dynamicsitemap>
73
+ </groups>
74
+ </dynamicsitemap>
75
+ </sections>
76
+ </config>
app/design/frontend/base/default/layout/creare_dynamicsitemap.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="1.0">
3
+ <dynamicsitemap_index_index>
4
+ <reference name="root">
5
+ <action method="unsetChild"><alias>breadcrumbs</alias></action>
6
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
7
+ </reference>
8
+
9
+ <reference name="head">
10
+ <action method="setTitle" translate="title"><title>Sitemap</title></action>
11
+ <action method="addCss"><stylesheet>creare/css/dynamicsitemap.css</stylesheet></action>
12
+ </reference>
13
+
14
+ <reference name="content">
15
+ <block type="dynamicsitemap/dynamicsitemap" name="creare.dynamicsitemap.dynamicsitemap" template="creare/dynamicsitemap/sitemap.phtml"/>
16
+ </reference>
17
+ </dynamicsitemap_index_index>
18
+ </layout>
app/design/frontend/base/default/template/creare/dynamicsitemap/sitemap.phtml ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="ones-column">
2
+ <?php if(Mage::helper('dynamicsitemap')->showCMS() || Mage::helper('dynamicsitemap')->showXMLSitemap()): ?>
3
+ <div class="sitempan">
4
+ <h2 class="smh2">Our Main Site Pages</h2>
5
+ <ul class="siteul">
6
+ <?php if(Mage::helper('dynamicsitemap')->showCMS()): ?>
7
+ <?php echo $this->getCreareCMSPages(); // prints out our cms page ?>
8
+ <?php endif; ?>
9
+ <?php if(Mage::helper('dynamicsitemap')->showXMLSitemap()): ?>
10
+ <?php $sitemap = Mage::getModel('sitemap/sitemap')->load(1); ?>
11
+ <?php $sitemapfilename = $sitemap->getSitemapFilename(); ?>
12
+ <?php if($sitemapfilename != ""): ?>
13
+ <li><a href="<?php echo Mage::getBaseUrl().$sitemapfilename; ?>" title="XML Sitemap">XML Sitemap</a></li>
14
+ <?php endif; ?>
15
+ <?php endif; ?>
16
+ </ul>
17
+ <?php endif; ?>
18
+ <?php if(Mage::helper('dynamicsitemap')->showAccount() || Mage::helper('dynamicsitemap')->showContact()): ?>
19
+ <ul class="siteul">
20
+ <?php if(Mage::helper('dynamicsitemap')->showContact()): ?>
21
+ <li><a href="<?php echo Mage::getBaseUrl(); ?>contacts" title="Contact">Contact</a></li>
22
+ <?php endif; ?>
23
+ <?php if(Mage::helper('dynamicsitemap')->showAccount()): ?>
24
+ <?php
25
+ if($this->helper('customer')->isLoggedIn()) {
26
+ echo '<li><a href="'.Mage::getBaseUrl().'customer/account/index/" title="Account">Account</a></li>';
27
+ echo '<li><a href="'.Mage::getBaseUrl().'customer/account/logout/" title="Log Out">Log Out</a></li>';
28
+ } else {
29
+ echo '<li><a href="'.Mage::getBaseUrl().'customer/account/" title="Register/Log In">Register/Log In</a></li>';
30
+ }
31
+ ?>
32
+ <li><a href="<?php echo Mage::getBaseUrl(); ?>catalogsearch/advanced" title="Advanced Search">Advanced Search</a></li>
33
+ <?php endif; ?>
34
+ </ul>
35
+
36
+ </div>
37
+ <?php endif; ?>
38
+ <?php if(Mage::helper('dynamicsitemap')->showCategories()): ?>
39
+ <div class="sitempan">
40
+ <h2 class="smh2">Our Categories</h2>
41
+ <?php $_helper = Mage::helper('catalog/category') ?>
42
+ <?php $_categories = $_helper->getStoreCategories() ?>
43
+ <?php if (count($_categories) > 0): ?>
44
+ <ul class="sitecatul">
45
+ <?php foreach($_categories as $_category): ?>
46
+ <?php //echo $_category->isEnabled(); ?>
47
+ <li class="cat">
48
+ <a href="<?php echo $_helper->getCategoryUrl($_category) ?>" title="<?php echo $_category->getName() ?>"><strong class="strongsm"><?php echo $_category->getName() ?></strong></a>
49
+ <?php $_category = Mage::getModel('catalog/category')->load($_category->getId()) ?>
50
+ <?php $_subcategories = $_category->getChildrenCategories() ?>
51
+ <?php if (count($_subcategories) > 0): ?>
52
+ <ul>
53
+ <?php foreach($_subcategories as $_subcategory): ?>
54
+ <?php $_nextcategory = Mage::getModel('catalog/category')->load($_subcategory->getId()) ?>
55
+ <?php $_nextsubcategories = $_nextcategory->getChildrenCategories() ?>
56
+ <li>
57
+ <a href="<?php echo $_helper->getCategoryUrl($_subcategory) ?>" title="<?php echo $_subcategory->getName() ?>">
58
+ <?php echo $_subcategory->getName() ?>
59
+ </a>
60
+ <?php if (count($_nextsubcategories) > 0): ?>
61
+ <ul>
62
+ <?php foreach($_nextsubcategories as $_nextsubcat): ?>
63
+ <li>
64
+ <a href="<?php echo $_helper->getCategoryUrl($_nextsubcat) ?>" title="<?php echo $_subcategory->getName() ?> - <?php echo $_nextsubcat->getName() ?>">
65
+ <?php echo $_nextsubcat->getName() ?>
66
+ </a>
67
+ </li>
68
+ <?php endforeach; ?>
69
+ </ul>
70
+ <?php endif; ?>
71
+ </li>
72
+ <?php endforeach; ?>
73
+ </ul>
74
+ <?php endif; ?>
75
+ </li>
76
+ <?php endforeach; ?>
77
+ </ul>
78
+ <?php endif; ?>
79
+ </div>
80
+ <?php endif; ?>
81
+ </div>
app/design/frontend/default/default/layout/dynamicsitemap.xml DELETED
@@ -1,37 +0,0 @@
1
- <?xml version="1.0"?>
2
- <layout version="1.0">
3
- <dynamicsitemap_index_index>
4
-
5
- <reference name="root">
6
- <action method="unsetChild"><alias>breadcrumbs</alias></action>
7
- <action method="setTemplate"><template>page/1column.phtml</template></action>
8
- <!--<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs">
9
- <action method="addCrumb">
10
- <crumbName>Home</crumbName>
11
- <crumbInfo>
12
- <label>Home</label>
13
- <title>Home</title>
14
- <link>/home</link>
15
- </crumbInfo>
16
- </action>
17
- <action method="addCrumb">
18
- <crumbName>Sitemap</crumbName>
19
- <crumbInfo>
20
- <label>Sitemap</label>
21
- <title>Sitemap</title>
22
- </crumbInfo>
23
- </action>
24
- </block> -->
25
- </reference>
26
-
27
- <reference name="head">
28
- <action method="setTitle" translate="title"><title>Sitemap</title></action>
29
- <action method="addCss"><stylesheet>css/dynamicsitemap.css</stylesheet></action>
30
- </reference>
31
-
32
- <reference name="content">
33
- <block type="dynamicsitemap/dynamicsitemap" name="dynamicsitemap.dynamicsitemap" template="dynamicsitemap/sitemap.phtml"/>
34
- </reference>
35
- </dynamicsitemap_index_index>
36
- </layout>
37
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/dynamicsitemap/sitemap.phtml DELETED
@@ -1,75 +0,0 @@
1
- <div class="ones-column">
2
- <div class="sitempan">
3
- <h2 class="smh2">Our Main Pages</h2>
4
- <ul class="siteul">
5
- <?php echo $this->getCreareCMSPages(); // prints out our cms pages ?>
6
- <?php $sitemap = Mage::getModel('sitemap/sitemap')->load(1); ?>
7
- <?php $sitemapfilename = $sitemap->getSitemapFilename(); ?>
8
- <?php if($sitemapfilename != ""): ?>
9
- <li><a href="<?php echo Mage::getBaseUrl().$sitemapfilename; ?>" title="XML Sitemap">XML Sitemap</a></li>
10
- <?php endif; ?>
11
- </ul>
12
- <ul class="siteul">
13
- <li><a href="<?php echo Mage::getBaseUrl(); ?>" title="Home">Home</a></li>
14
- <li><a href="<?php echo Mage::getBaseUrl(); ?>contacts" title="Contact">Contact</a></li>
15
- <?php
16
- if($this->helper('customer')->isLoggedIn()) {
17
- echo '<li><a href="'.Mage::getBaseUrl().'customer/account/index/" title="Account">Account</a></li>';
18
- echo '<li><a href="'.Mage::getBaseUrl().'customer/account/logout/" title="Log Out">Log Out</a></li>';
19
- } else {
20
- echo '<li><a href="'.Mage::getBaseUrl().'customer/account/" title="Register/Log In">Register/Log In</a></li>';
21
- }
22
- ?>
23
- <li><a href="<?php echo Mage::getBaseUrl(); ?>catalogsearch/advanced" title="Advanced Search">Advanced Search</a></li>
24
- </ul>
25
- </div>
26
- <?php
27
- //<h2 class="smh2">Our Most Popular Products</h2>
28
- // <ul class="siteul">
29
- // <?php echo $this->getCrearePopularProducts(); // prints out our manual list of products ?>
30
- <?php
31
- // </ul>
32
- ?>
33
- <div class="sitempan">
34
- <h2 class="smh2">Our Categories</h2>
35
- <?php // Thanks to Luci @ Creare for the following code ?>
36
- <?php $_helper = Mage::helper('catalog/category') ?>
37
- <?php $_categories = $_helper->getStoreCategories() ?>
38
- <?php if (count($_categories) > 0): ?>
39
- <ul class="sitecatul">
40
- <?php foreach($_categories as $_category): ?>
41
- <?php //echo $_category->isEnabled(); ?>
42
- <li class="cat">
43
- <a href="<?php echo $_helper->getCategoryUrl($_category) ?>" title="<?php echo $_category->getName() ?>"><strong class="strongsm"><?php echo $_category->getName() ?></strong></a>
44
- <?php $_category = Mage::getModel('catalog/category')->load($_category->getId()) ?>
45
- <?php $_subcategories = $_category->getChildrenCategories() ?>
46
- <?php if (count($_subcategories) > 0): ?>
47
- <ul>
48
- <?php foreach($_subcategories as $_subcategory): ?>
49
- <?php $_nextcategory = Mage::getModel('catalog/category')->load($_subcategory->getId()) ?>
50
- <?php $_nextsubcategories = $_nextcategory->getChildrenCategories() ?>
51
- <li>
52
- <a href="<?php echo $_helper->getCategoryUrl($_subcategory) ?>" title="<?php echo $_subcategory->getName() ?>">
53
- <?php echo $_subcategory->getName() ?>
54
- </a>
55
- <?php if (count($_nextsubcategories) > 0): ?>
56
- <ul>
57
- <?php foreach($_nextsubcategories as $_nextsubcat): ?>
58
- <li>
59
- <a href="<?php echo $_helper->getCategoryUrl($_nextsubcat) ?>" title="<?php echo $_subcategory->getName() ?> - <?php echo $_nextsubcat->getName() ?>">
60
- <?php echo $_nextsubcat->getName() ?>
61
- </a>
62
- </li>
63
- <?php endforeach; ?>
64
- </ul>
65
- <?php endif; ?>
66
- </li>
67
- <?php endforeach; ?>
68
- </ul>
69
- <?php endif; ?>
70
- </li>
71
- <?php endforeach; ?>
72
- </ul>
73
- <?php endif; ?>
74
- </div>
75
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Creare_DynamicSitemap.xml CHANGED
@@ -1,10 +1,10 @@
1
  <?xml version="1.0"?>
2
  <config>
3
- <modules>
4
- <Creare_DynamicSitemap>
5
- <active>true</active>
6
- <codePool>local</codePool>
7
- <version>1.0</version>
8
- </Creare_DynamicSitemap>
9
- </modules>
10
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
+ <modules>
4
+ <Creare_DynamicSitemap>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ <version>2.0</version>
8
+ </Creare_DynamicSitemap>
9
+ </modules>
10
  </config>
package.xml CHANGED
@@ -1,24 +1,26 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Creare_DynamicSitemap</name>
4
- <version>1.1.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>
8
  <extends/>
9
  <summary>A dynamic sitemap which lists all categories and main pages automatically.</summary>
10
- <description>This dynamic sitemap lists all of your categories in cascading style. Nicely styled on a dedicated sitemap page. This sitemap is SEO friendly and is intended to replace the default Magento paginated sitemap.&#xD;
11
  &#xD;
12
  It lists all of your CMS pages and also a few static pages that need a mention.&#xD;
13
  &#xD;
14
- The purpose of this extension is to make sure that your categories are indexed correctly as well as making your website more user-friendly.</description>
15
- <notes>Updated to work with 1.3 &amp; 1.4 &amp; 1.5 &amp; 1.6&#xD;
16
  &#xD;
17
- Included Check for enabled pages and stores</notes>
18
- <authors><author><name>E-Commerce Web Design</name><user>EcommerceWD</user><email>dev@e-commercewebdesign.co.uk</email></author></authors>
19
- <date>2012-02-13</date>
20
- <time>13:18:03</time>
21
- <contents><target name="magelocal"><dir name="Creare"><dir name="DynamicSitemap"><dir name="Block"><file name="Dynamicsitemap.php" hash="cd84149049c5b31e40f3eb34ffa7eef7"/></dir><dir name="controllers"><file name="IndexController.php" hash="95ff6b1aacceb990e3fb92ffd88cdb43"/></dir><dir name="etc"><file name="config.xml" hash="e9d0142ab70ad5ec7f75a89abbe6b590"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="dynamicsitemap"><file name="sitemap.phtml" hash="c116f0991378cc9910b07eda6e9fb684"/></dir></dir><dir name="layout"><file name="dynamicsitemap.xml" hash="817f2de40f841369ff6165908a19766e"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Creare_DynamicSitemap.xml" hash="de1cdb59ce6cdfd540055534f1aa1d9c"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="dynamicsitemap.css" hash="85ace1d1d4c2d0a074fa4fce5dfd2175"/></dir></dir></dir></dir></target></contents>
 
 
 
22
  <compatible/>
23
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Creare_DynamicSitemap</name>
4
+ <version>2.0.0</version>
5
  <stability>stable</stability>
6
+ <license uri="http://www.opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>A dynamic sitemap which lists all categories and main pages automatically.</summary>
10
+ <description>This dynamic sitemap lists all of your categories in cascading style. Standard styling on a dedicated sitemap page. This sitemap is SEO friendly and is intended to replace the default Magento paginated sitemap.&#xD;
11
  &#xD;
12
  It lists all of your CMS pages and also a few static pages that need a mention.&#xD;
13
  &#xD;
14
+ This sitemap will also include a link to your XML sitemap if you have it installed.&#xD;
 
15
  &#xD;
16
+ The purpose of this extension is to make sure that your categories are indexed correctly as well as making your website more user-friendly.&#xD;
17
+ &#xD;
18
+ We have updated this extension to allow for the admin to change settings in the config area of the dashboard.</description>
19
+ <notes>Updated to work on 1.4+ with admin configuration.</notes>
20
+ <authors><author><name>Robert Kent</name><user>auto-converted</user><email>magento@creare.co.uk</email></author></authors>
21
+ <date>2013-01-24</date>
22
+ <time>15:12:53</time>
23
+ <contents><target name="magelocal"><dir name="Creare"><dir name="DynamicSitemap"><dir name="Block"><file name="Dynamicsitemap.php" hash="cd8f7624af59290922a6ae913bf1083f"/></dir><dir name="Helper"><file name="Data.php" hash="856282fac51bdd86f56886547cd55411"/></dir><dir name="controllers"><file name="IndexController.php" hash="2d7d6ff70f70e00c17bfbc3d9305671a"/></dir><dir name="etc"><file name="config.xml" hash="c1400adf54c97ffd01c94a9b35bff16b"/><file name="system.xml" hash="b6b823534571c11dcd3abff1a7e50582"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="creare"><dir name="dynamicsitemap"><file name="sitemap.phtml" hash="d26267d1306073d8f323c1681e447f7f"/></dir></dir></dir><dir name="layout"><file name="creare_dynamicsitemap.xml" hash="0480832b0f7b5a1c5c5cd3e128289dfd"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Creare_DynamicSitemap.xml" hash="b73c659870f8926bb4c59b1e9000ae2b"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="creare"><dir name="css"><file name="dynamicsitemap.css" hash="85d89bf92ecf5e084e2c0b9ae7f271f6"/></dir></dir></dir></dir></dir></target></contents>
24
  <compatible/>
25
+ <dependencies/>
26
  </package>
skin/frontend/{default/default → base/default/creare}/css/dynamicsitemap.css RENAMED
@@ -1,4 +1,4 @@
1
- /* Creare DynamicSitemap */
2
 
3
  .sitempan { width: 100%; float: left; }
4
  .smh2 { font-size: 1.4em; padding: 10px; display: block; }
1
+ /* Creare DynamicSitemap :); */
2
 
3
  .sitempan { width: 100%; float: left; }
4
  .smh2 { font-size: 1.4em; padding: 10px; display: block; }