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.8.16 |
Comparing to | |
See all releases |
Code changes from version 3.3.8.15 to 3.3.8.16
- app/code/community/Fishpig/AttributeSplash/Model/Abstract.php +3 -1
- app/code/community/Fishpig/AttributeSplash/controllers/PageController.php +2 -0
- app/code/community/Fishpig/AttributeSplash/etc/config.xml +1 -1
- app/code/community/Fishpig/AttributeSplash/sql/attributeSplash_setup/mysql4-upgrade-3.3.8.15-3.3.8.16.php +28 -0
- app/design/frontend/base/default/layout/attribute-splash.xml +1 -1
- package.xml +5 -5
app/code/community/Fishpig/AttributeSplash/Model/Abstract.php
CHANGED
@@ -232,7 +232,9 @@ abstract class Fishpig_AttributeSplash_Model_Abstract extends Mage_Core_Model_Ab
|
|
232 |
*/
|
233 |
public function hasAvailableCustomFields()
|
234 |
{
|
235 |
-
|
|
|
|
|
236 |
}
|
237 |
|
238 |
/**
|
232 |
*/
|
233 |
public function hasAvailableCustomFields()
|
234 |
{
|
235 |
+
$customFields = $this->getAllAvailableCustomFields();
|
236 |
+
|
237 |
+
return $customFields && count($this->getAllAvailableCustomFields()) > 0;
|
238 |
}
|
239 |
|
240 |
/**
|
app/code/community/Fishpig/AttributeSplash/controllers/PageController.php
CHANGED
@@ -122,6 +122,8 @@ class Fishpig_AttributeSplash_PageController extends Mage_Core_Controller_Front_
|
|
122 |
}
|
123 |
|
124 |
Mage::register('splash_page', $splashPage);
|
|
|
|
|
125 |
|
126 |
if ($group = $splashPage->getSplashGroup()) {
|
127 |
Mage::register('splash_group', $group);
|
122 |
}
|
123 |
|
124 |
Mage::register('splash_page', $splashPage);
|
125 |
+
Mage::register('current_category', $splashPage);
|
126 |
+
Mage::register('category', $splashPage);
|
127 |
|
128 |
if ($group = $splashPage->getSplashGroup()) {
|
129 |
Mage::register('splash_group', $group);
|
app/code/community/Fishpig/AttributeSplash/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Fishpig_AttributeSplash>
|
5 |
-
<version>3.3.8.
|
6 |
</Fishpig_AttributeSplash>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Fishpig_AttributeSplash>
|
5 |
+
<version>3.3.8.16</version>
|
6 |
</Fishpig_AttributeSplash>
|
7 |
</modules>
|
8 |
<global>
|
app/code/community/Fishpig/AttributeSplash/sql/attributeSplash_setup/mysql4-upgrade-3.3.8.15-3.3.8.16.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @category Fishpig
|
4 |
+
* @package Fishpig_AttributeSplash
|
5 |
+
* @license http://fishpig.co.uk/license.txt
|
6 |
+
* @author Ben Tideswell <help@fishpig.co.uk>
|
7 |
+
*/
|
8 |
+
|
9 |
+
$this->startSetup();
|
10 |
+
|
11 |
+
try {
|
12 |
+
$tableName = $this->getTable('attributesplash_group');
|
13 |
+
|
14 |
+
if ($indexes = $this->getConnection('core_read')->fetchAll("SHOW INDEX FROM " . $tableName)) {
|
15 |
+
foreach($indexes as $index) {
|
16 |
+
if ($index['Column_name'] === 'attribute_id') {
|
17 |
+
$this->run("DROP INDEX " . $index['Key_name'] . " ON " . $tableName);
|
18 |
+
}
|
19 |
+
}
|
20 |
+
}
|
21 |
+
|
22 |
+
$this->run("ALTER TABLE {$this->getTable('attributesplash_group_store')} ADD UNIQUE (`group_id`,`store_id`);");
|
23 |
+
}
|
24 |
+
catch (Exception $e) {
|
25 |
+
Mage::logException($e);
|
26 |
+
}
|
27 |
+
|
28 |
+
$this->endSetup();
|
app/design/frontend/base/default/layout/attribute-splash.xml
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
*/
|
7 |
-->
|
8 |
-
<attributesplash_page_view>
|
9 |
<reference name="head">
|
10 |
<action method="addCss"><style>css/attribute-splash.css</style></action>
|
11 |
</reference>
|
5 |
*
|
6 |
*/
|
7 |
-->
|
8 |
+
<attributesplash_page_view>
|
9 |
<reference name="head">
|
10 |
<action method="addCss"><style>css/attribute-splash.css</style></action>
|
11 |
</reference>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fishpigs_Attribute_Splash_Page</name>
|
4 |
-
<version>3.3.8.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://fishpig.co.uk/license.txt">FishPig EULA</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Create SEO landing pages for your product attributes.</summary>
|
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
|
12 |
<authors><author><name>fishpig</name><user>fishpig</user><email>ben@fishpig.co.uk</email></author></authors>
|
13 |
-
<date>
|
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="de399b8df83efbc7d2442c9c0dc59ba4"/></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="509c695f523f07d01a4932a55f1dbc1f"/><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="
|
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.8.16</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://fishpig.co.uk/license.txt">FishPig EULA</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Create SEO landing pages for your product attributes.</summary>
|
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-03-06</date>
|
14 |
+
<time>09:51:51</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="de399b8df83efbc7d2442c9c0dc59ba4"/></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="509c695f523f07d01a4932a55f1dbc1f"/><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="2aaf88ce5f041db66d5a0dfb6c163a1f"/><dir name="Page"><file name="Collection.php" hash="389e342252a9066cf4da11c80937a233"/></dir><file name="Page.php" hash="93d237432a066cac9bb3d2f5e219b116"/></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="946174a3acd8a0c8ea31c19d1d304f59"/></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="603555062a96300bcdd2c566c0885ec1"/></dir><file name="AttributeSplashController.php" hash="5dbc124b77cbab293ab6b92deb27419b"/></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="b5e1700a0f97f349cd16a9171b8a6097"/><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.16-1.9.17.php" hash="b17056fe56a55367f3a4c78c47a16095"/><file name="mysql4-upgrade-1.9.5-1.9.6.php" hash="4ab561651fa49776d53ed07c415119fe"/><file name="mysql4-upgrade-2.0.1-2.0.2.php" hash="c9af6039d4d620f8b40a245fb35af458"/><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="da04923844a460181eb042ee865e898a"/><file name="mysql4-upgrade-2.0.6-2.0.7.php" hash="58f2c8462027ef87c6d002c2e7816762"/><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="d376bc97a149ff0ddac6b09b3eb466c4"/><file name="mysql4-upgrade-2.2.0.5-2.2.0.6.php" hash="b25fd508bc5cdc5058f1f88b02752c18"/><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="800a55579155ccae338b55b94a21106c"/><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="1f4021bd5efd583a9478790bddd77acc"/><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="f95f086b8a6856a0cff4d7a9defb9656"/><file name="mysql4-upgrade-3.0.4.0-3.0.5.0.php" hash="fe33155d0140875eba7b204a969bcc62"/><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="52d4acdb41e63f5b0a6f207048547569"/><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="843ac0659330500575344f727992d377"/></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>
|