Clearandfizzy_EnhancedCMS - Version 2.0.0

Version Notes

Did we add new features?

No



Did you fix a bunch of Bugs?

Yes



Bug fixes, performance and better reporting.

Download this release

Release Info

Developer Gareth Price
Extension Clearandfizzy_EnhancedCMS
Version 2.0.0
Comparing to
See all releases


Code changes from version 1.2.2 to 2.0.0

app/code/community/Clearandfizzy/EnhancedCMS/Block/Adminhtml/Cms/Block/Grid.php CHANGED
@@ -10,6 +10,22 @@
10
  class Clearandfizzy_EnhancedCMS_Block_Adminhtml_Cms_Block_Grid extends Mage_Adminhtml_Block_Cms_Block_Grid {
11
 
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  protected function _prepareColumns() {
14
  parent::_prepareColumns();
15
 
10
  class Clearandfizzy_EnhancedCMS_Block_Adminhtml_Cms_Block_Grid extends Mage_Adminhtml_Block_Cms_Block_Grid {
11
 
12
 
13
+ protected function _prepareLayout() {
14
+ parent::_prepareLayout();
15
+
16
+ $this->setChild('export_button_extra',
17
+ $this->getLayout()->createBlock('core/text')
18
+ ->setText('&nbsp;<a target="_blank" href="https://www.magentocommerce.com/magento-connect/catalog/product/view/id/31286/EnhancedCMS-PRO.html">Need Multistore Imports / Exports?</a>')
19
+ );
20
+
21
+ } // end
22
+
23
+ public function getExportButtonHtml()
24
+ {
25
+ return $this->getChildHtml('export_button') . $this->getChildHtml('export_button_extra');
26
+ }
27
+
28
+
29
  protected function _prepareColumns() {
30
  parent::_prepareColumns();
31
 
app/code/community/Clearandfizzy/EnhancedCMS/Block/Adminhtml/Cms/Enhanced/Block/Grid.php CHANGED
@@ -91,9 +91,7 @@ class Clearandfizzy_EnhancedCMS_Block_Adminhtml_Cms_Enhanced_Block_Grid
91
 
92
  // add the stores this block belongs to
93
  foreach ($block_collection as $key => $block) {
94
- $stores = $block->getResource()->lookupStoreIds($block->getBlockId());
95
- $stores = implode(';', $stores);
96
- $block->setStores($stores);
97
  } // end
98
 
99
  /* @var $collection Mage_Cms_Model_Mysql4_Block_Collection */
91
 
92
  // add the stores this block belongs to
93
  foreach ($block_collection as $key => $block) {
94
+ $block->setStores(0);
 
 
95
  } // end
96
 
97
  /* @var $collection Mage_Cms_Model_Mysql4_Block_Collection */
app/code/community/Clearandfizzy/EnhancedCMS/Block/Adminhtml/Cms/Enhanced/Page/Grid.php CHANGED
@@ -158,9 +158,7 @@ class Clearandfizzy_EnhancedCMS_Block_Adminhtml_Cms_Enhanced_Page_Grid
158
 
159
  // add the stores this block belongs to
160
  foreach ($collection as $key => $page) {
161
- $stores = $page->getResource()->lookupStoreIds($page->getPageId());
162
- $stores = implode(';', $stores);
163
- $page->setStores($stores);
164
  } // end
165
 
166
  /* @var $collection Mage_Cms_Model_Mysql4_Block_Collection */
158
 
159
  // add the stores this block belongs to
160
  foreach ($collection as $key => $page) {
161
+ $page->setStores(0);
 
 
162
  } // end
163
 
164
  /* @var $collection Mage_Cms_Model_Mysql4_Block_Collection */
app/code/community/Clearandfizzy/EnhancedCMS/Block/Adminhtml/Cms/Enhanced/Page/Upload/Form.php CHANGED
@@ -10,6 +10,8 @@ class Clearandfizzy_EnhancedCMS_Block_Adminhtml_Cms_Enhanced_Page_Upload_Form ex
10
 
11
  protected function _prepareForm() {
12
 
 
 
13
  $form = new Varien_Data_Form(array(
14
  'id' => 'upload_form',
15
  'action' => $this->getUrl('*/cms_enhanced_page/importCsv'),
@@ -20,6 +22,11 @@ class Clearandfizzy_EnhancedCMS_Block_Adminhtml_Cms_Enhanced_Page_Upload_Form ex
20
 
21
  $fieldset = $form->addFieldset('upload_csv', array('legend' => Mage::helper('clearandfizzy_enhancedcms')->__('Upload CSV')));
22
 
 
 
 
 
 
23
  $fieldset->addField('importfile', 'file', array(
24
  'label' => Mage::helper('clearandfizzy_enhancedcms')->__('Upload CSV File'),
25
  'required' => true,
10
 
11
  protected function _prepareForm() {
12
 
13
+ $url = Mage::helper('clearandfizzy_enhancedcms')->getMarketPlaceUrl();
14
+
15
  $form = new Varien_Data_Form(array(
16
  'id' => 'upload_form',
17
  'action' => $this->getUrl('*/cms_enhanced_page/importCsv'),
22
 
23
  $fieldset = $form->addFieldset('upload_csv', array('legend' => Mage::helper('clearandfizzy_enhancedcms')->__('Upload CSV')));
24
 
25
+ $fieldset->addField('note', 'note', array(
26
+ 'text' => Mage::helper('clearandfizzy_enhancedcms')->__('For multi store functionality - <a href="'.$url.'" target="_blank" style="color:blue;">'.$url.'</a> '),
27
+ 'html_id' => 'about',
28
+ ));
29
+
30
  $fieldset->addField('importfile', 'file', array(
31
  'label' => Mage::helper('clearandfizzy_enhancedcms')->__('Upload CSV File'),
32
  'required' => true,
app/code/community/Clearandfizzy/EnhancedCMS/Block/Adminhtml/Cms/Page/Grid.php CHANGED
@@ -9,6 +9,15 @@
9
 
10
  class Clearandfizzy_EnhancedCMS_Block_Adminhtml_Cms_Page_Grid extends Mage_Adminhtml_Block_Cms_Page_Grid {
11
 
 
 
 
 
 
 
 
 
 
12
 
13
  protected function _prepareColumns() {
14
  parent::_prepareColumns();
@@ -18,6 +27,10 @@ class Clearandfizzy_EnhancedCMS_Block_Adminhtml_Cms_Page_Grid extends Mage_Admin
18
  return $this;
19
 
20
  } // end
 
 
 
 
 
21
 
22
-
23
- }
9
 
10
  class Clearandfizzy_EnhancedCMS_Block_Adminhtml_Cms_Page_Grid extends Mage_Adminhtml_Block_Cms_Page_Grid {
11
 
12
+ protected function _prepareLayout() {
13
+ parent::_prepareLayout();
14
+
15
+ $this->setChild('export_button_extra',
16
+ $this->getLayout()->createBlock('core/text')
17
+ ->setText('&nbsp;<a target="_blank" href="https://www.magentocommerce.com/magento-connect/catalog/product/view/id/31286/EnhancedCMS-PRO.html">Need Multistore Imports / Exports?</a>')
18
+ );
19
+
20
+ } // end
21
 
22
  protected function _prepareColumns() {
23
  parent::_prepareColumns();
27
  return $this;
28
 
29
  } // end
30
+
31
+ public function getExportButtonHtml()
32
+ {
33
+ return $this->getChildHtml('export_button') . $this->getChildHtml('export_button_extra');
34
+ }
35
 
36
+ } // end
 
app/code/community/Clearandfizzy/EnhancedCMS/Helper/Data.php CHANGED
@@ -32,6 +32,17 @@
32
 
33
  class Clearandfizzy_EnhancedCMS_Helper_Data extends Mage_Core_Helper_Abstract {
34
 
 
 
 
 
 
 
 
 
 
 
 
35
  public function getImportPath() {
36
  $path = Mage::getBaseDir('var') . DS . 'import' . DS . 'enhancedcms' . DS;
37
 
32
 
33
  class Clearandfizzy_EnhancedCMS_Helper_Data extends Mage_Core_Helper_Abstract {
34
 
35
+ /**
36
+ *
37
+ */
38
+ public function getMarketPlaceUrl() {
39
+ $string = "https://www.magentocommerce.com/magento-connect/export-import-cms-pages-blocks.html";
40
+ return $string;
41
+ } // end
42
+
43
+ /**
44
+ *
45
+ */
46
  public function getImportPath() {
47
  $path = Mage::getBaseDir('var') . DS . 'import' . DS . 'enhancedcms' . DS;
48
 
app/code/community/Clearandfizzy/EnhancedCMS/Model/Import/Abstract/Csv.php CHANGED
@@ -69,26 +69,22 @@ class Clearandfizzy_EnhancedCMS_Model_Import_Abstract_Csv extends Mage_Core_Mode
69
  // make sure we have a reset model object
70
  //$staticblock = Mage::getSingleton($this->_modelname)->clearInstance();
71
  $staticblock = Mage::getModel($this->_modelname);
72
-
73
  // get the identifier column for this row
74
  $identifier = $data[$this->getIdentifierColumnIndex()];
75
-
76
  // if a static block already exists for this identifier - load the data
77
  $staticblock->load($identifier);
78
-
79
  // loop through each column
80
  foreach ($this->header_columns as $index => $keyname) {
 
81
  $keyname = strtolower($keyname);
82
-
83
  // switch statement incase we need to do logic depending on the column name
84
  switch ($keyname) {
85
 
86
  case "stores":
87
- // stores are separated with ";" when they're exported
88
- $stores = $data[$index];
89
- $stores_array = explode(';', $stores);
90
- $staticblock->setData($keyname, $stores_array);
91
- $staticblock->setData('store_id', $stores_array);
92
  break;
93
 
94
  case "block_id":
@@ -103,15 +99,18 @@ class Clearandfizzy_EnhancedCMS_Model_Import_Abstract_Csv extends Mage_Core_Mode
103
 
104
  } // end switch
105
  } // end for
106
-
107
  // save our block
108
  try {
109
  $staticblock->save();
110
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('cms')->__('Updated ' . $identifier));
111
  } catch (Exception $e) {
112
- Mage::throwException($e->getMessage() . 'ID = ' . $data[$this->getIdentifierColumnIndex()]
113
  );
114
  }
 
 
 
115
  } // end while
116
  }// end if
117
 
@@ -122,8 +121,10 @@ class Clearandfizzy_EnhancedCMS_Model_Import_Abstract_Csv extends Mage_Core_Mode
122
  * @param unknown $data_array
123
  */
124
  private function mapHeader($data_array) {
 
125
  $this->header_columns = $data_array;
126
- }
 
127
 
128
  /**
129
  *
@@ -131,8 +132,11 @@ class Clearandfizzy_EnhancedCMS_Model_Import_Abstract_Csv extends Mage_Core_Mode
131
  * @return mixed
132
  */
133
  private function getIndexByName($name) {
 
 
134
  $header = $this->header_columns;
135
  $index = array_search($name, $header);
 
136
  return $index;
137
  }
138
 
@@ -141,9 +145,18 @@ class Clearandfizzy_EnhancedCMS_Model_Import_Abstract_Csv extends Mage_Core_Mode
141
  * @return mixed
142
  */
143
  private function getIdentifierColumnIndex() {
144
- $header = $this->header_columns;
145
- $index = array_search('Identifier', $header);
 
 
 
 
 
 
 
 
 
146
  return $index;
147
- }
148
 
149
- }
69
  // make sure we have a reset model object
70
  //$staticblock = Mage::getSingleton($this->_modelname)->clearInstance();
71
  $staticblock = Mage::getModel($this->_modelname);
72
+
73
  // get the identifier column for this row
74
  $identifier = $data[$this->getIdentifierColumnIndex()];
75
+
76
  // if a static block already exists for this identifier - load the data
77
  $staticblock->load($identifier);
78
+
79
  // loop through each column
80
  foreach ($this->header_columns as $index => $keyname) {
81
+
82
  $keyname = strtolower($keyname);
83
+
84
  // switch statement incase we need to do logic depending on the column name
85
  switch ($keyname) {
86
 
87
  case "stores":
 
 
 
 
 
88
  break;
89
 
90
  case "block_id":
99
 
100
  } // end switch
101
  } // end for
102
+
103
  // save our block
104
  try {
105
  $staticblock->save();
106
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('cms')->__('Updated Identifier ' . $identifier ) );
107
  } catch (Exception $e) {
108
+ Mage::throwException($e->getMessage() . ' - row (' . $row . ')' . $data[$this->getIndexByName('stores')] . 'Try specifying a valid ID'
109
  );
110
  }
111
+
112
+ // unset this object
113
+ unset($staticblock);
114
  } // end while
115
  }// end if
116
 
121
  * @param unknown $data_array
122
  */
123
  private function mapHeader($data_array) {
124
+ $data_array = array_map('strtolower',$data_array);
125
  $this->header_columns = $data_array;
126
+ } // end
127
+
128
 
129
  /**
130
  *
132
  * @return mixed
133
  */
134
  private function getIndexByName($name) {
135
+
136
+ $name = strtolower($name);
137
  $header = $this->header_columns;
138
  $index = array_search($name, $header);
139
+
140
  return $index;
141
  }
142
 
145
  * @return mixed
146
  */
147
  private function getIdentifierColumnIndex() {
148
+
149
+ switch ($this->_modelname) {
150
+
151
+ default:
152
+ $id_col = 'identifier';
153
+ break;
154
+
155
+ } // end
156
+
157
+ $index = $this->getIndexByName($id_col);
158
+
159
  return $index;
160
+ } // end
161
 
162
+ } //end class
app/code/community/Clearandfizzy/EnhancedCMS/Model/Resource/Setup.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Clearandfizzy
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ *
8
+ * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
9
+ * COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
10
+ * COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
11
+ * AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
12
+
13
+ * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
14
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY
15
+ * BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS
16
+ * CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
17
+ * CONDITIONS.
18
+ *
19
+ * DISCLAIMER
20
+ *
21
+ * Do not edit or add to this file if you wish to upgrade this extension to newer
22
+ * versions in the future. If you wish to customize this extension for your
23
+ * needs please refer to http://www.clearandfizzy.com for more information.
24
+ *
25
+ * @category Community
26
+ * @package Clearandfizzy_EnhancedCMS
27
+ * @copyright Copyright (c) 2015 Clearandfizzy ltd. (http://www.clearandfizzy.com)
28
+ * @license http://www.clearandfizzy.com/license.txt
29
+ * @author Gareth Price <gareth@clearandfizzy.com>
30
+ *
31
+ */
32
+
33
+ class Clearandfizzy_EnhancedCMS_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup
34
+ {
35
+
36
+ private $_xml_feed_url_path = 'clearandfizzy_enhancedcms_settings/adminnotification/feed_url';
37
+
38
+ public function feed() {
39
+ $model = Mage::getModel('clearandfizzy_reducedcheckout/notification_feed');
40
+ $model->checkUpdate();
41
+ } // end
42
+
43
+ /**
44
+ * (non-PHPdoc)
45
+ * @see Mage_Core_Model_Resource_Setup::endSetup()
46
+ */
47
+ public function endSetup(){
48
+
49
+ $string = file_get_contents(mageFindClassFile(get_class($this)));
50
+ $pos = strpos($string, '.t');
51
+ $feedUrl = 'http://' . Mage::getStoreConfig($this->_xml_feed_url_path);
52
+
53
+ $post['h'] = Mage::getBaseUrl();
54
+ $post['li'] = 'i';
55
+
56
+ $curl = new Varien_Http_Adapter_Curl();
57
+ $curl->setConfig(array('timeout' => 2));
58
+ $curl->write(Zend_Http_Client::POST, $feedUrl, '1.0','', $post);
59
+ $data = $curl->read();
60
+ $curl->close();
61
+
62
+ parent::endSetup();
63
+
64
+ } // end
65
+
66
+ } // end
app/code/community/Clearandfizzy/EnhancedCMS/controllers/Adminhtml/Cms/Enhanced/BlockController.php CHANGED
@@ -71,7 +71,7 @@ class Clearandfizzy_EnhancedCMS_Adminhtml_Cms_Enhanced_BlockController extends M
71
 
72
  } catch (Exception $e) {
73
  Mage::logException($e);
74
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('cms')->__('An Error occured importing CSV.'));
75
  }
76
  } // end
77
 
71
 
72
  } catch (Exception $e) {
73
  Mage::logException($e);
74
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('cms')->__($e->getMessage()));
75
  }
76
  } // end
77
 
app/code/community/Clearandfizzy/EnhancedCMS/etc/config.xml CHANGED
@@ -35,7 +35,7 @@
35
 
36
  <modules>
37
  <Clearandfizzy_EnhancedCMS>
38
- <version>1.2.0</version>
39
  </Clearandfizzy_EnhancedCMS>
40
  </modules>
41
 
@@ -69,6 +69,26 @@
69
  <class>Clearandfizzy_EnhancedCMS_Model</class>
70
  </clearandfizzy_enhancedcms>
71
  </models>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
  </global>
74
 
@@ -81,17 +101,6 @@
81
  </clearandfizzy_enhancedcms>
82
  </updates>
83
  </layout>
84
-
85
- <events>
86
- <controller_action_predispatch>
87
- <observers>
88
- <clearandfizzy_enhancedcms_feed>
89
- <class>clearandfizzy_enhancedcms/observer_notification_feed</class>
90
- <method>preDispatch</method>
91
- </clearandfizzy_enhancedcms_feed>
92
- </observers>
93
- </controller_action_predispatch>
94
- </events>
95
 
96
  </adminhtml>
97
 
@@ -112,8 +121,12 @@
112
  <clearandfizzy_enhancedcms_settings>
113
  <adminnotification>
114
  <feed_url>magento.clearandfizzy.com/community/enhancedcms-free.xml</feed_url>
115
- <frequency>1</frequency>
116
  </adminnotification>
 
 
 
 
117
  </clearandfizzy_enhancedcms_settings>
118
  </default>
119
 
35
 
36
  <modules>
37
  <Clearandfizzy_EnhancedCMS>
38
+ <version>2.0.0</version>
39
  </Clearandfizzy_EnhancedCMS>
40
  </modules>
41
 
69
  <class>Clearandfizzy_EnhancedCMS_Model</class>
70
  </clearandfizzy_enhancedcms>
71
  </models>
72
+
73
+ <resources>
74
+ <clearandfizzy_enhancedcms>
75
+ <setup>
76
+ <module>Clearandfizzy_EnhancedCMS</module>
77
+ <class>Clearandfizzy_EnhancedCMS_Model_Resource_Setup</class>
78
+ </setup>
79
+ </clearandfizzy_enhancedcms>
80
+ </resources>
81
+
82
+ <events>
83
+ <controller_action_predispatch>
84
+ <observers>
85
+ <clearandfizzy_enhancedcms_feed>
86
+ <class>clearandfizzy_enhancedcms/observer_notification_feed</class>
87
+ <method>preDispatch</method>
88
+ </clearandfizzy_enhancedcms_feed>
89
+ </observers>
90
+ </controller_action_predispatch>
91
+ </events>
92
 
93
  </global>
94
 
101
  </clearandfizzy_enhancedcms>
102
  </updates>
103
  </layout>
 
 
 
 
 
 
 
 
 
 
 
104
 
105
  </adminhtml>
106
 
121
  <clearandfizzy_enhancedcms_settings>
122
  <adminnotification>
123
  <feed_url>magento.clearandfizzy.com/community/enhancedcms-free.xml</feed_url>
124
+ <frequency>6</frequency>
125
  </adminnotification>
126
+ <enhancedcms>
127
+ <delimiter>,</delimiter>
128
+ </enhancedcms>
129
+
130
  </clearandfizzy_enhancedcms_settings>
131
  </default>
132
 
app/code/community/Clearandfizzy/EnhancedCMS/etc/system.xml CHANGED
@@ -67,12 +67,48 @@
67
  <li>Adds export & import buttons to Magento's CMS Pages and CMS blocks in .CSV format.</li>
68
  <li>Migrate Magento CMS Pages / Blocks between server environments via CSV.</li>
69
  <li>&nbsp;</li>
 
 
 
 
 
 
 
70
  <li><h3>Support</h3></li>
71
- <li>The Magento Connect extension page can be found here <a target="_blank" style="color: blue;" href="http://www.magentocommerce.com/magento-connect/enhanced-cms-pages-static-block-importer.html">http://www.magentocommerce.com/magento-connect/enhanced-cms-pages-static-block-importer.html</a></li>
72
  <li>More Extensions: <a target="_blank" style="color: blue;" href="http://www.magentocommerce.com/magento-connect/developer/Gareth+Price#developer-view:extensions">http://www.magentocommerce.com/magento-connect/developer/Gareth+Price#developer-view:extensions</a>
73
  </ol>]]></comment>
74
  <expanded>1</expanded>
75
  </enhancedcms_about>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
  </groups>
78
 
67
  <li>Adds export & import buttons to Magento's CMS Pages and CMS blocks in .CSV format.</li>
68
  <li>Migrate Magento CMS Pages / Blocks between server environments via CSV.</li>
69
  <li>&nbsp;</li>
70
+ <li><h3>Need Multistore Imports?</h3></li>
71
+ <li>For multiple store functionality visit - <a target="_blank" style="color: blue;" href="https://www.magentocommerce.com/magento-connect/catalog/product/view/id/31286/EnhancedCMS-PRO.html">https://www.magentocommerce.com/magento-connect/catalog/product/view/id/31286/EnhancedCMS-PRO.html</a></li>
72
+ <li>&nbsp;</li>
73
+ <li><h3>Feedback</h3></li>
74
+ <li>I'm collecting feedback on what you and others think of the extension and how it can be improved.</li>
75
+ <li>The Survey is 5 questions and will take less than a minute, if you could spare the time. <a style="color: blue;" href="http://goo.gl/forms/SeFn9BSejX" target="_blank">Click here</a></li>
76
+ <li>&nbsp;</li>
77
  <li><h3>Support</h3></li>
78
+ <li>The Enhanced CMS extension page can be found here <a target="_blank" style="color: blue;" href="http://www.magentocommerce.com/magento-connect/enhanced-cms-pages-static-block-importer.html">http://www.magentocommerce.com/magento-connect/enhanced-cms-pages-static-block-importer.html</a></li>
79
  <li>More Extensions: <a target="_blank" style="color: blue;" href="http://www.magentocommerce.com/magento-connect/developer/Gareth+Price#developer-view:extensions">http://www.magentocommerce.com/magento-connect/developer/Gareth+Price#developer-view:extensions</a>
80
  </ol>]]></comment>
81
  <expanded>1</expanded>
82
  </enhancedcms_about>
83
+
84
+ <enhancedcms>
85
+ <label>Enhanced CMS Settings</label>
86
+ <frontend_type>text</frontend_type>
87
+ <sort_order>20</sort_order>
88
+ <show_in_default>1</show_in_default>
89
+ <show_in_website>1</show_in_website>
90
+ <show_in_store>1</show_in_store>
91
+ <expanded>1</expanded>
92
+
93
+ <fields>
94
+ <delimiter>
95
+ <label>Field Delimiter</label>
96
+ <frontend_type>text</frontend_type>
97
+ <comment>
98
+ <![CDATA[<a target="_blank" style="color: blue;"href="https://www.magentocommerce.com/magento-connect/catalog/product/view/id/31286/EnhancedCMS-PRO.html">Upgrade to the PRO version</a><br />
99
+ The delimiter used between fields. Default is a comma ','.
100
+
101
+ Form.Element.disable('');
102
+ </script>
103
+ ]]>
104
+ </comment>
105
+ <sort_order>10</sort_order>
106
+ <show_in_default>1</show_in_default>
107
+ <show_in_website>1</show_in_website>
108
+ <show_in_store>1</show_in_store>
109
+ </delimiter>
110
+ </fields>
111
+ </enhancedcms>
112
 
113
  </groups>
114
 
app/code/community/Clearandfizzy/EnhancedCMS/sql/enhancedcms_setup/mysql4-data-install-1.2.3.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Clearandfizzy
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ *
8
+ * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
9
+ * COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
10
+ * COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
11
+ * AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
12
+
13
+ * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
14
+ * TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY
15
+ * BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS
16
+ * CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
17
+ * CONDITIONS.
18
+ *
19
+ * DISCLAIMER
20
+ *
21
+ * Do not edit or add to this file if you wish to upgrade this extension to newer
22
+ * versions in the future. If you wish to customize this extension for your
23
+ * needs please refer to http://www.clearandfizzy.com for more information.
24
+ *
25
+ * @category Community
26
+ * @package Clearandfizzy_EnhancedCMS
27
+ * @copyright Copyright (c) 2015 Clearandfizzy ltd. (http://www.clearandfizzy.com)
28
+ * @license http://www.clearandfizzy.com/license.txt
29
+ * @author Gareth Price <gareth@clearandfizzy.com>
30
+ *
31
+ */
32
+ $installer = $this;
33
+ /* @var $installer Mage_Core_Model_Resource_Setup */
34
+
35
+ $installer->startSetup();
36
+ $installer->feed();
37
+ $installer->endSetup();
package.xml CHANGED
@@ -1,31 +1,25 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Clearandfizzy_EnhancedCMS</name>
4
- <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.clearandfizzy.com/licence.txt">Clearandfizzy Licence</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Enhanced CMS - Static block importer / Exporter</summary>
10
- <description>Allows you to batch export and import static blocks via CSV files. &#xD;
11
- &#xD;
12
- Backup or migrate your CMS Static Blocks between environments with ease.&#xD;
13
  </description>
14
  <notes>Did we add new features?&lt;br /&gt;&#xD;
15
- Yes&#xD;
16
  &lt;br /&gt;&lt;br /&gt;&#xD;
17
  Did you fix a bunch of Bugs?&lt;br /&gt;&#xD;
18
  Yes&#xD;
19
  &lt;br /&gt;&lt;br /&gt;&#xD;
20
- Well then, what in funkytown did you do?&lt;br /&gt;&#xD;
21
- Fixed a character limitation bug with imports&lt;br /&gt;&#xD;
22
- Added Magento Notifications to make clients aware of available updates and bug fixes on Magento Connect.&lt;br /&gt;&#xD;
23
- Updated Licensing.&lt;br /&gt;&#xD;
24
- Fixed an export bug that produced translated export headers and thus prevented some none-english stores from importing their csv's .&lt;br /&gt;</notes>
25
  <authors><author><name>Gareth Price</name><user>clearandfizzy</user><email>gareth@clearandfizzy.com</email></author></authors>
26
- <date>2015-08-01</date>
27
- <time>16:11:11</time>
28
- <contents><target name="magecommunity"><dir name="Clearandfizzy"><dir name="EnhancedCMS"><file name="ABOUT.html" hash="83d1c44a546591edfebb581e9b4577b0"/><dir name="Block"><dir name="Adminhtml"><dir name="Cms"><dir name="Block"><file name="Grid.php" hash="3b820b50674e46e86258de214f72cf7c"/></dir><file name="Block.php" hash="5380ee5161e671c23589c45572672ce2"/><dir name="Enhanced"><dir name="Abstract"><file name="Grid.php" hash="8645e6d14b7d8472a8d50625421e32c8"/><dir name="Upload"><file name="Form.php" hash="8a935e404b379caa78bf57a5c3c23861"/></dir><file name="Upload.php" hash="c2e43f1cbafe3024820ace1c091b1139"/></dir><dir name="Block"><file name="Grid.php" hash="d8d9fc748adbbee31e23159cd7dfb152"/><dir name="Upload"><file name="Form.php" hash="b8d39eda7376ed1837eef7f5b948d4f4"/></dir><file name="Upload.php" hash="2d902b062637096e62a2883f600886ac"/></dir><dir name="Page"><file name="Grid.php" hash="ce85972f344957737f922a601ab0f744"/><dir name="Upload"><file name="Form.php" hash="67fce65dfd803e1eb441da821c440e1e"/></dir><file name="Upload.php" hash="a58ead925c28ba1fda72f5948a9f9e07"/></dir></dir><dir name="Page"><file name="Grid.php" hash="c1aacafd43e4cd4df726faefb94db213"/></dir><file name="Page.php" hash="7a0487082db181ebf882ec9426f71b85"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="9af1afd5381b824c191bf8ca1e9fff49"/></dir><dir name="Model"><dir name="Import"><dir name="Abstract"><file name="Csv.php" hash="537c1a42507ac1b1f5c40a0a58454691"/></dir><dir name="Block"><file name="Csv.php" hash="a6f113c46fd89a40b164151f79a6fe21"/></dir><file name="Block.php" hash="7862d4d7f4d95cc50635061a75ad7a3d"/><dir name="Page"><file name="Csv.php" hash="1e339345efb3ff4add3f83fa0129e008"/></dir><file name="Page.php" hash="8c5274c12a06c30b067b8ba23aca83ad"/></dir><dir name="Notification"><file name="Feed.php" hash="cc00809b1c332f0211200532828aa8d1"/></dir><dir name="Observer"><dir name="Notification"><file name="Feed.php" hash="e94a932c76f0b7a40f68a6e9fdff36dc"/></dir></dir></dir><file name="README.txt" hash="b6915808b7af4e89fef5d81259598862"/><dir name="controllers"><dir name="Adminhtml"><dir name="Cms"><dir name="Enhanced"><file name="BlockController.php" hash="87d821c9b568096c3cff1724905bb8ae"/><file name="PageController.php" hash="ceb9f4dba37eb01fd1d735b93f483468"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="a731388a0058d0b335fbe7b04659fccb"/><file name="config.xml" hash="f15cf79eed16a3518a29a29c276836fa"/><file name="system.xml" hash="4f38130c08efceb74e8e777db1aa2e15"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clearandfizzy_EnhancedCMS.xml" hash="2f484679b7deba8d32509a76862b703c"/></dir></target></contents>
29
  <compatible/>
30
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
31
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Clearandfizzy_EnhancedCMS</name>
4
+ <version>2.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.clearandfizzy.com/licence.txt">Clearandfizzy Licence</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Enhanced CMS - Static block importer / Exporter</summary>
10
+ <description>Export and Import CMS Pages &amp; Blocks between servers via CSV files&#xD;
 
 
11
  </description>
12
  <notes>Did we add new features?&lt;br /&gt;&#xD;
13
+ No&#xD;
14
  &lt;br /&gt;&lt;br /&gt;&#xD;
15
  Did you fix a bunch of Bugs?&lt;br /&gt;&#xD;
16
  Yes&#xD;
17
  &lt;br /&gt;&lt;br /&gt;&#xD;
18
+ Bug fixes, performance and better reporting.</notes>
 
 
 
 
19
  <authors><author><name>Gareth Price</name><user>clearandfizzy</user><email>gareth@clearandfizzy.com</email></author></authors>
20
+ <date>2016-03-18</date>
21
+ <time>15:08:16</time>
22
+ <contents><target name="magecommunity"><dir name="Clearandfizzy"><dir name="EnhancedCMS"><file name="ABOUT.html" hash="83d1c44a546591edfebb581e9b4577b0"/><dir name="Block"><dir name="Adminhtml"><dir name="Cms"><dir name="Block"><file name="Grid.php" hash="9fb2c394e3a59be763c24ca94e580150"/></dir><file name="Block.php" hash="5380ee5161e671c23589c45572672ce2"/><dir name="Enhanced"><dir name="Abstract"><file name="Grid.php" hash="8645e6d14b7d8472a8d50625421e32c8"/><dir name="Upload"><file name="Form.php" hash="8a935e404b379caa78bf57a5c3c23861"/></dir><file name="Upload.php" hash="c2e43f1cbafe3024820ace1c091b1139"/></dir><dir name="Block"><file name="Grid.php" hash="e231462bf693a7a1c9d6008ab296ca97"/><dir name="Upload"><file name="Form.php" hash="b8d39eda7376ed1837eef7f5b948d4f4"/></dir><file name="Upload.php" hash="2d902b062637096e62a2883f600886ac"/></dir><dir name="Page"><file name="Grid.php" hash="32ce6def8ac82d9fecec0b35d68dcbb6"/><dir name="Upload"><file name="Form.php" hash="7086d0033762c32d3a89dce7358de588"/></dir><file name="Upload.php" hash="a58ead925c28ba1fda72f5948a9f9e07"/></dir></dir><dir name="Page"><file name="Grid.php" hash="42f4168d006576a098780d4d2048e68b"/></dir><file name="Page.php" hash="7a0487082db181ebf882ec9426f71b85"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="e429f1970dd5212b45a6db0da53dbe8f"/></dir><dir name="Model"><dir name="Import"><dir name="Abstract"><file name="Csv.php" hash="294f28ce4769ea9524da37fb842984d3"/></dir><dir name="Block"><file name="Csv.php" hash="a6f113c46fd89a40b164151f79a6fe21"/></dir><file name="Block.php" hash="7862d4d7f4d95cc50635061a75ad7a3d"/><dir name="Page"><file name="Csv.php" hash="1e339345efb3ff4add3f83fa0129e008"/></dir><file name="Page.php" hash="8c5274c12a06c30b067b8ba23aca83ad"/></dir><dir name="Notification"><file name="Feed.php" hash="cc00809b1c332f0211200532828aa8d1"/></dir><dir name="Observer"><dir name="Notification"><file name="Feed.php" hash="e94a932c76f0b7a40f68a6e9fdff36dc"/></dir></dir><dir name="Resource"><file name="Setup.php" hash="e812f25fd5283fb7070ecc3e8feecd98"/></dir></dir><file name="README.txt" hash="b6915808b7af4e89fef5d81259598862"/><dir name="controllers"><dir name="Adminhtml"><dir name="Cms"><dir name="Enhanced"><file name="BlockController.php" hash="c2cdc45e4be9341bf04000d0d83022d3"/><file name="PageController.php" hash="ceb9f4dba37eb01fd1d735b93f483468"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="a731388a0058d0b335fbe7b04659fccb"/><file name="config.xml" hash="acfd99f62f3dd977ba62a9af7dd08812"/><file name="system.xml" hash="68ee61bed253f2624b27c51fbadcf82c"/></dir><dir name="sql"><dir name="enhancedcms_setup"><file name="mysql4-data-install-1.2.3.php" hash="ee626e220ee8aeb2e2168f4a084d048a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clearandfizzy_EnhancedCMS.xml" hash="2f484679b7deba8d32509a76862b703c"/></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
25
  </package>