Version Notes
For a list of changes, please see https://fishpig.co.uk/magento/extensions/attribute-splash-pages/#changelog
Download this release
Release Info
Developer | fishpig |
Extension | Fishpigs_Attribute_Splash_Page |
Version | 3.3.9.7 |
Comparing to | |
See all releases |
Code changes from version 3.3.9.6 to 3.3.9.7
- app/code/community/Fishpig/AttributeSplash/Block/Adminhtml/Group/Grid.php +1 -1
- app/code/community/Fishpig/AttributeSplash/Block/Adminhtml/Page/Grid.php +13 -1
- app/code/community/Fishpig/AttributeSplash/controllers/Adminhtml/AttributeSplash/PageController.php +40 -0
- app/code/community/Fishpig/AttributeSplash/etc/config.xml +1 -1
- package.xml +4 -4
app/code/community/Fishpig/AttributeSplash/Block/Adminhtml/Group/Grid.php
CHANGED
@@ -15,7 +15,7 @@ class Fishpig_AttributeSplash_Block_Adminhtml_Group_Grid extends Mage_Adminhtml_
|
|
15 |
$this->setId('splash_group_grid');
|
16 |
$this->setDefaultSort('group_id');
|
17 |
$this->setDefaultDir('asc');
|
18 |
-
$this->setSaveParametersInSession(
|
19 |
$this->setUseAjax(true);
|
20 |
}
|
21 |
|
15 |
$this->setId('splash_group_grid');
|
16 |
$this->setDefaultSort('group_id');
|
17 |
$this->setDefaultDir('asc');
|
18 |
+
$this->setSaveParametersInSession(true);
|
19 |
$this->setUseAjax(true);
|
20 |
}
|
21 |
|
app/code/community/Fishpig/AttributeSplash/Block/Adminhtml/Page/Grid.php
CHANGED
@@ -15,7 +15,7 @@ class Fishpig_AttributeSplash_Block_Adminhtml_Page_Grid extends Mage_Adminhtml_B
|
|
15 |
$this->setId('splash_page_grid');
|
16 |
$this->setDefaultSort('page_id');
|
17 |
$this->setDefaultDir('asc');
|
18 |
-
$this->setSaveParametersInSession(
|
19 |
$this->setUseAjax(true);
|
20 |
}
|
21 |
|
@@ -178,6 +178,18 @@ class Fishpig_AttributeSplash_Block_Adminhtml_Page_Grid extends Mage_Adminhtml_B
|
|
178 |
'url' => $this->getUrl('*/attributeSplash_page/massDelete'),
|
179 |
'confirm' => Mage::helper('catalog')->__('Are you sure?')
|
180 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
}
|
182 |
|
183 |
/**
|
15 |
$this->setId('splash_page_grid');
|
16 |
$this->setDefaultSort('page_id');
|
17 |
$this->setDefaultDir('asc');
|
18 |
+
$this->setSaveParametersInSession(true);
|
19 |
$this->setUseAjax(true);
|
20 |
}
|
21 |
|
178 |
'url' => $this->getUrl('*/attributeSplash_page/massDelete'),
|
179 |
'confirm' => Mage::helper('catalog')->__('Are you sure?')
|
180 |
));
|
181 |
+
|
182 |
+
$this->getMassactionBlock()->addItem('enable', array(
|
183 |
+
'label'=> $this->__('Enable'),
|
184 |
+
'url' => $this->getUrl('*/attributeSplash_page/massEnable'),
|
185 |
+
'confirm' => Mage::helper('catalog')->__('Are you sure?')
|
186 |
+
));
|
187 |
+
|
188 |
+
$this->getMassactionBlock()->addItem('disable', array(
|
189 |
+
'label'=> $this->__('Disable'),
|
190 |
+
'url' => $this->getUrl('*/attributeSplash_page/massDisable'),
|
191 |
+
'confirm' => Mage::helper('catalog')->__('Are you sure?')
|
192 |
+
));
|
193 |
}
|
194 |
|
195 |
/**
|
app/code/community/Fishpig/AttributeSplash/controllers/Adminhtml/AttributeSplash/PageController.php
CHANGED
@@ -173,6 +173,46 @@ class Fishpig_AttributeSplash_Adminhtml_AttributeSplash_PageController extends F
|
|
173 |
|
174 |
$this->_redirect('*/attributeSplash');
|
175 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
|
177 |
/**
|
178 |
* Initialise the splash page model
|
173 |
|
174 |
$this->_redirect('*/attributeSplash');
|
175 |
}
|
176 |
+
|
177 |
+
|
178 |
+
public function massEnableAction()
|
179 |
+
{
|
180 |
+
$this->_changeIsEnabledAction(1);
|
181 |
+
}
|
182 |
+
|
183 |
+
public function massDisableAction()
|
184 |
+
{
|
185 |
+
$this->_changeIsEnabledAction(0);
|
186 |
+
}
|
187 |
+
|
188 |
+
protected function _changeIsEnabledAction($value)
|
189 |
+
{
|
190 |
+
$pageIds = $this->getRequest()->getParam('page');
|
191 |
+
|
192 |
+
if (!is_array($pageIds)) {
|
193 |
+
$this->_getSession()->addError($this->__('Please select page(s).'));
|
194 |
+
}
|
195 |
+
else {
|
196 |
+
if (!empty($pageIds)) {
|
197 |
+
try {
|
198 |
+
foreach ($pageIds as $pageId) {
|
199 |
+
$page = Mage::getSingleton('attributeSplash/page')->load($pageId);
|
200 |
+
|
201 |
+
if ($page->getId()) {
|
202 |
+
$page->setIsEnabled((int)$value)->save();
|
203 |
+
}
|
204 |
+
}
|
205 |
+
|
206 |
+
$this->_getSession()->addSuccess($this->__('Total of %d record(s) have been updated.', count($pageIds)));
|
207 |
+
}
|
208 |
+
catch (Exception $e) {
|
209 |
+
$this->_getSession()->addError($e->getMessage());
|
210 |
+
}
|
211 |
+
}
|
212 |
+
}
|
213 |
+
|
214 |
+
$this->_redirect('*/attributeSplash');
|
215 |
+
}
|
216 |
|
217 |
/**
|
218 |
* Initialise the splash page model
|
app/code/community/Fishpig/AttributeSplash/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Fishpig_AttributeSplash>
|
5 |
-
<version>3.3.9.
|
6 |
</Fishpig_AttributeSplash>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Fishpig_AttributeSplash>
|
5 |
+
<version>3.3.9.7</version>
|
6 |
</Fishpig_AttributeSplash>
|
7 |
</modules>
|
8 |
<global>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fishpigs_Attribute_Splash_Page</name>
|
4 |
-
<version>3.3.9.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://fishpig.co.uk/license.txt">FishPig EULA</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>This module allows you to create splash pages (landing pages) for your product attributes. These pages function much like category pages, allowing yo to display products, static blocks or both. The module works with the category navigation and layered navigation and includes fully customisable SEO URL's.</description>
|
11 |
<notes>For a list of changes, please see https://fishpig.co.uk/magento/extensions/attribute-splash-pages/#changelog</notes>
|
12 |
<authors><author><name>fishpig</name><user>fishpig</user><email>ben@fishpig.co.uk</email></author></authors>
|
13 |
-
<date>2017-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Fishpig"><dir name="AttributeSplash"><dir name="Block"><dir name="Adminhtml"><file name="Dashboard.php" hash="731dbb40a55071d02bd92e43473109fa"/><file name="Extend.php" hash="b953e4661405165bcf29b59aeda42a3b"/><dir name="Form"><dir name="Field"><file name="Urlkey.php" hash="b3f2e813188d6f8805b2caeb4f834bf6"/></dir></dir><dir name="Group"><dir name="Edit"><file name="Form.php" hash="fc927b79309df561773fe578fb1fad09"/><dir name="Tab"><file name="Abstract.php" hash="96e479a7eca8cb742f27a9eed619d65e"/><file name="Content.php" hash="30d24e08d83bb222f2b1a8169c4f3d48"/><file name="Design.php" hash="1fbc5babddc70729a1dcacb1fabbe034"/><file name="General.php" hash="c7c3d088f4a538c6b4d9a784aab88242"/><file name="Meta.php" hash="7058642a220347deeda6ea431fc054f1"/><file name="Seo.php" hash="a95471b43c44140ea07c24618f8b531e"/></dir><file name="Tabs.php" hash="b03a68cc45f8b68733d1627ab3538411"/></dir><file name="Edit.php" hash="79e7d29d23acd9c72ea37794c8d29231"/><file name="Grid.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fishpigs_Attribute_Splash_Page</name>
|
4 |
+
<version>3.3.9.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://fishpig.co.uk/license.txt">FishPig EULA</license>
|
7 |
<channel>community</channel>
|
10 |
<description>This module allows you to create splash pages (landing pages) for your product attributes. These pages function much like category pages, allowing yo to display products, static blocks or both. The module works with the category navigation and layered navigation and includes fully customisable SEO URL's.</description>
|
11 |
<notes>For a list of changes, please see https://fishpig.co.uk/magento/extensions/attribute-splash-pages/#changelog</notes>
|
12 |
<authors><author><name>fishpig</name><user>fishpig</user><email>ben@fishpig.co.uk</email></author></authors>
|
13 |
+
<date>2017-07-10</date>
|
14 |
+
<time>08:51:04</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Fishpig"><dir name="AttributeSplash"><dir name="Block"><dir name="Adminhtml"><file name="Dashboard.php" hash="731dbb40a55071d02bd92e43473109fa"/><file name="Extend.php" hash="b953e4661405165bcf29b59aeda42a3b"/><dir name="Form"><dir name="Field"><file name="Urlkey.php" hash="b3f2e813188d6f8805b2caeb4f834bf6"/></dir></dir><dir name="Group"><dir name="Edit"><file name="Form.php" hash="fc927b79309df561773fe578fb1fad09"/><dir name="Tab"><file name="Abstract.php" hash="96e479a7eca8cb742f27a9eed619d65e"/><file name="Content.php" hash="30d24e08d83bb222f2b1a8169c4f3d48"/><file name="Design.php" hash="1fbc5babddc70729a1dcacb1fabbe034"/><file name="General.php" hash="c7c3d088f4a538c6b4d9a784aab88242"/><file name="Meta.php" hash="7058642a220347deeda6ea431fc054f1"/><file name="Seo.php" hash="a95471b43c44140ea07c24618f8b531e"/></dir><file name="Tabs.php" hash="b03a68cc45f8b68733d1627ab3538411"/></dir><file name="Edit.php" hash="79e7d29d23acd9c72ea37794c8d29231"/><file name="Grid.php" hash="37518299f0d3caf2817807ee93754703"/></dir><file name="Group.php" hash="7804d0272717593ef7afaa2261f7302c"/><dir name="Page"><dir name="Edit"><file name="Form.php" hash="ec8609e766d4e6e7176cc9e0c9e8b6bc"/><file name="Js.php" hash="45e4e33068189377e9bcac1a51b5ba47"/><dir name="Tab"><file name="Abstract.php" hash="577c17bec36fbffc6f8cd3231ba8a243"/><file name="Attributes.php" hash="dab45d890fa5566f8b940ced03ec48b1"/><file name="Content.php" hash="820db5968e8efcd80b8fcc70e74bff34"/><file name="Customfields.php" hash="02e904b03eba46e73bfe58d2a20ebee4"/><file name="Design.php" hash="48dc187093ec327a1877fb1ade16bb33"/><file name="General.php" hash="70c6893aca12ea2561cbf8119f19a799"/><file name="Images.php" hash="e1482076b30cfa9a60b71c5b9b9a68ac"/><file name="Meta.php" hash="c98f7455bfffe42a853d96e03fc38f07"/></dir><file name="Tabs.php" hash="391842403a007c35324aa8fd09ebef04"/></dir><file name="Edit.php" hash="e381e3a218bab4fca9f73e13b38992ec"/><file name="Grid.php" hash="6f853b5c92ea2a663a27ad0fec7cd09a"/><dir name="Helper"><file name="Image.php" hash="562c6c1db32c28dec6b82465515ca0ea"/></dir></dir><file name="Page.php" hash="563f0973d5ca0c292f47f0f58e9537e0"/><file name="Xmlsitemap.php" hash="2dad376de1cbb3315f0c21446f9d1388"/></dir><dir name="Group"><file name="View.php" hash="90bddc0ab61ca3641239afd33e09e7e3"/></dir><dir name="Layer"><file name="View.php" hash="6912ebb70ef922f595f3dc1a2ce4477f"/></dir><dir name="Page"><dir name="View"><dir name="Product"><file name="List.php" hash="90d4af1ec0a4570f8677927ae71cc42c"/></dir></dir><file name="View.php" hash="dbb394a410de1cb4cb23c1bb45d6212b"/></dir></dir><dir name="Controller"><dir name="Adminhtml"><file name="Abstract.php" hash="cec926ac96555146b3df067ae6704fbe"/></dir><file name="Router.php" hash="ba23f63bcf040f6de68b59e7aa571958"/></dir><dir name="FPAdmin"><dir name="Block"><dir name="Adminhtml"><file name="Extend.php" hash="75e04a5ca9087172cfab1b98cad7b263"/></dir></dir><dir name="etc"><file name="config.xml" hash="b521b9303c7c8199e91cfda651dda1b1"/></dir><dir name="template"><file name="large.phtml" hash="0b2108b293d9dd694b2e31b0d3c84273"/><file name="small.phtml" hash="0aba9ac21006fa9f7811911d352bc89a"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7b72101f7119271cd8d2a18bf64ada34"/><file name="Image.php" hash="ebffad52f40a213d5ec19f3918cd3c15"/></dir><dir name="Model"><file name="Abstract.php" hash="d3a5f25da7f7499a4d1b69a7be2d4def"/><file name="Group.php" hash="f131e5dca3b850a025b9b3c96d121be2"/><file name="Indexer.php" hash="41ad895ca63e0ebe96c5cd767f97b1d2"/><file name="Layer.php" hash="917e65bfa003edbb8b408c61fddf7d7a"/><file name="Observer.php" hash="76659169460564fbc869a12c39c3fda3"/><file name="Page.php" hash="247a78c4095843e24015accc207b98eb"/><dir name="Resource"><file name="Abstract.php" hash="e95a46fd676650126b9709ef5c156a86"/><dir name="Collection"><file name="Abstract.php" hash="47b5eca5bd1a3753fafce198bf803f16"/></dir><dir name="Group"><file name="Collection.php" hash="b6a383408392624d962a0b71f5c94116"/></dir><file name="Group.php" hash="481f3a82a2117880cd6140e63da2796d"/><dir name="Page"><file name="Collection.php" hash="389e342252a9066cf4da11c80937a233"/></dir><file name="Page.php" hash="94324433973bf8d753e5bbbbe24105a8"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Attribute"><file name="Abstract.php" hash="9ddfa2eb83e6ec8d257bcd2d6977f384"/><file name="Splashable.php" hash="40fa08332ff34bc41e201c31b96d51fd"/><file name="Splashed.php" hash="314567f1f80a1010b78f0c5349abaf4e"/></dir><file name="Layout.php" hash="f51ca8be6325f2e62a181c891b14cbfe"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="AttributeSplash"><file name="GroupController.php" hash="01427ff74943bd8481a33dfc1b6e6f52"/><file name="PageController.php" hash="a2d33af7a3eb4515e81b6beca7871446"/></dir><file name="AttributeSplashController.php" hash="1f5efa878705b26b5de86927d31bdc1e"/></dir><file name="GroupController.php" hash="9f25aa2a2019e3027370af6270fa1d38"/><file name="PageController.php" hash="afd636c7d362a73ceef721a171a5518f"/><file name="SitemapController.php" hash="09d50b324c03ad40c68a1aafbe42f279"/></dir><dir name="etc"><file name="adminhtml.xml" hash="759d7ffa40031d14f5667fe60e0ad007"/><file name="config.xml" hash="631365136e40b33ccf6a3ecc37ad9f4e"/><file name="system.xml" hash="08cf41c7cfc59c289e1b3277abfacb90"/></dir><file name="license.txt" hash="e8fb4ab53f05a8b4b7fea01d7d0df63b"/><file name="notes.txt" hash="ee78d53165c33f5025893a2695f9945e"/><dir name="sql"><dir name="attributeSplash_setup"><file name="mysql4-upgrade-1.9.5-1.9.6.php" hash="4f9c62d077ef4c0c0d40bee412811e63"/><file name="mysql4-upgrade-2.0.1-2.0.2.php" hash="246514162d498df6dc51bf4e4f9d92f1"/><file name="mysql4-upgrade-2.0.12-2.0.13.php" hash="44e236b5c00275822f2766fb3aade050"/><file name="mysql4-upgrade-2.0.5-2.0.6.php" hash="faf4d7ec465632381368434253a7dc62"/><file name="mysql4-upgrade-2.0.6-2.0.7.php" hash="766e934cfeb6e4c3a55690ed1beb13b7"/><file name="mysql4-upgrade-2.0.8-2.0.9.php" hash="b78dc758c2d8f11eb80e31652f92b317"/><file name="mysql4-upgrade-2.0.9-2.0.10.php" hash="6185c7fb4faf6fcd95cd0365fe0b5e03"/><file name="mysql4-upgrade-2.2.0.5-2.2.0.6.php" hash="9abf789a0889edb189cee65e6d4a128d"/><file name="mysql4-upgrade-2.2.0.7-2.2.0.8.php" hash="83cb47a19873315987be7811d9ace297"/><file name="mysql4-upgrade-2.2.0.8-2.2.0.9.php" hash="4c3c9829a93e902700f1ed835b60c521"/><file name="mysql4-upgrade-2.2.1.0-2.2.1.1.php" hash="ccc977f076d9e2aef34a2aa02e3212b3"/><file name="mysql4-upgrade-2.2.1.1-2.2.1.2.php" hash="8ab5b8f8e3ddd7634668b0311414b3b2"/><file name="mysql4-upgrade-3.0.1.10-3.0.1.11.php" hash="687d031221740324a60fccb26fd12fea"/><file name="mysql4-upgrade-3.0.1.9-3.0.1.10.php" hash="8fcb189115b17e39a288ba8df70a4e28"/><file name="mysql4-upgrade-3.0.4.0-3.0.5.0.php" hash="5ee9cd2cb04000b95a59163c1eddbda7"/><file name="mysql4-upgrade-3.1.1.0-3.1.2.0.php" hash="6ea402356d9faa250d5231725f8944b1"/><file name="mysql4-upgrade-3.3.3.0-3.3.4.0.php" hash="6c9a6300d3ce739aa985340194d13d96"/><file name="mysql4-upgrade-3.3.6.2-3.3.6.3.php" hash="003475ce5b5f3495a4433b827f3d54cb"/><file name="mysql4-upgrade-3.3.8.11-3.3.8.12.php" hash="1518d10ebed9cfabec1ef7bb9acf220f"/><file name="mysql4-upgrade-3.3.8.15-3.3.8.16.php" hash="6c9a6300d3ce739aa985340194d13d96"/><file name="mysql4-upgrade-3.3.8.19-3.3.8.20.php" hash="6c9a6300d3ce739aa985340194d13d96"/><file name="mysql4-upgrade-3.3.9.2-3.3.9.3.php" hash="5797d50f53fa86b8f2c7d1fff45449d1"/><file name="mysql4-upgrade-3.3.9.5-3.3.9.6.php" hash="0adc62dc7dfeba7ea26e8663a27c2c1e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="attribute-splash.xml" hash="d7a57972d4a657c1d9acf77dade557c9"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="attribute-splash.xml" hash="53384dd50dff358dd73ce8ce9f8e1c5a"/></dir><dir name="template"><dir name="attribute-splash"><dir><dir name="group"><file name="view.phtml" hash="d4f3be1b65ed5d209a116153822c43ba"/></dir><dir name="page"><file name="view.phtml" hash="7cf47164bc5d140de566294a93942677"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Fishpig_AttributeSplash.xml" hash="80fa9d54cefcd44305240d05508a56ee"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="attribute-splash.css" hash="c3b1103f0174a7b17496aaf75a2b4e78"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
|
18 |
</package>
|