Skip to content

Commit 96896f1

Browse files
committed
Release version 2.0.5 add Support ingore block
1 parent 3bf81de commit 96896f1

File tree

7 files changed

+20
-15
lines changed

7 files changed

+20
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.0.5] - 2022-08-01
6+
7+
* Support ignore blocks
8+
59
## [2.0.4] - 2022-08-01
610

711
* Support ```params``` options with Library option

Helper/Config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ public function getIgnoreBlocks()
6969
{
7070
$ignoreList = [];
7171
$ignoreBlocks = $this->scopeConfig->getValue(
72-
self::XML_PATH_SCALEFLEX_CLOUDIMAGE_IGNORE_BLOCKS,
73-
ScopeInterface::SCOPE_STORE
74-
);
72+
self::XML_PATH_SCALEFLEX_CLOUDIMAGE_IGNORE_BLOCKS,
73+
ScopeInterface::SCOPE_STORE
74+
);
7575
if (!empty($ignoreBlocks)) {
7676
$ignoreBlocks = trim($ignoreBlocks);
7777
$explodedBlocks = explode(",", $ignoreBlocks);

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ Once the steps listed above are completed enter your Cloudimage token into the S
6464
Stores > Configuration > Cloudimage By Scaleflex > Cloudimage
6565
```
6666

67-
![Scaleflex Cloudimage Plugin Configuration](doc/images/cloudimage_plugin_config_2.0.3.png "Scaleflex Cloudimage Configuration Page")
67+
![Scaleflex Cloudimage Plugin Configuration](doc/images/2.0.5.png "Scaleflex Cloudimage Configuration Page")
6868

6969
Expand the `General` section and activate the module by selecting `Yes` in the `Scaleflex Cloudimage Active` dropdown. Enter your Cloudimage token and configure the Options.
7070

7171
After saving the configuration, you will be asked to flush your Magento cache.
7272

7373
## Options
7474

75-
**(New) Support multiple websites and store views, now you can have difference token for each website.**
75+
**Support multiple websites and store views, now you can have difference token for each website.**
7676

7777
Following options are available:
7878

@@ -102,12 +102,13 @@ This setting is for advanced users only and allows to inject a custom JS functio
102102

103103
**Maximum "Pixel ratio"**: List of supported device pixel ratios, default is 2, eg: 2 for Retina devices
104104

105-
**(New)Prevent Image Resize**: If you set Maximum "Pixel ratio" equal to 2, but some of your assets does not have min retina size(at least 2560x960), please enable this to prevent image resized
105+
**Prevent Image Resize**: If you set Maximum "Pixel ratio" equal to 2, but some of your assets does not have min retina size(at least 2560x960), please enable this to prevent image resized
106106

107107
**Custom Library Options**: Those optional parameters will be added to the request for each URL going through the Cloudimage acceleration infrastructure. It can allow you to force image formats, apply automatic transformations or watermarking, and might be used for troubleshooting purposes. (for advanced users only, please refer to the official [Cloudimage documentation here](https://docs/cloudimage.io) for the list of possible parameters)
108108

109109
**Remove v7**: Removes the "/v7" part in URL format. Activate for token created after October 20th 2021.
110110

111+
**Ignore blocks(New)**: Cloudimage will not affect on these blocks, separate by comma. For example: product.info.description, product.info.attribute.
111112

112113
## 2. Integration "on-the-fly" in Magento templates
113114

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"ext-libxml": "*"
88
},
99
"type": "magento2-module",
10-
"version": "2.0.4",
10+
"version": "2.0.5",
1111
"license": "BSD-3-Clause",
1212
"authors": [
1313
{

doc/images/2.0.5.png

131 KB
Loading

etc/adminhtml/system.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@
8080
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
8181
<comment><![CDATA[By default, yes.]]></comment>
8282
</field>
83-
<field id="fortorama_compatibility" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
84-
<label>Fotorama Compatibility Mode</label>
85-
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
86-
<comment><![CDATA[Fotorama compatibility mode, default no]]></comment>
87-
</field>
88-
<field id="devicepixelratio" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
83+
<field id="fortorama_compatibility" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
84+
<label>Fotorama Compatibility Mode</label>
85+
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
86+
<comment><![CDATA[Fotorama compatibility mode, default no]]></comment>
87+
</field>
88+
<field id="devicepixelratio" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
8989
<label>Maximum "Pixel ratio"</label>
9090
<source_model>Scaleflex\Cloudimage\Model\Config\Source\PixelRatio</source_model>
9191
<comment><![CDATA[List of supported device pixel ratios, eg: 2 for Retina devices]]></comment>
92-
</field>
92+
</field>
9393
<field id="orgifsml" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
9494
<label>Prevent Image Resize</label>
9595
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
4-
<module name="Scaleflex_Cloudimage" setup_version="2.0.4">
4+
<module name="Scaleflex_Cloudimage" setup_version="2.0.5">
55
<sequence>
66
<module name="Magento_Catalog"/>
77
</sequence>

0 commit comments

Comments
 (0)