Skip to content

Commit dcb07a1

Browse files
committed
Update system.xml & config.xml
1 parent 023062c commit dcb07a1

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

etc/adminhtml/system.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
-->
1010
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
1111
<system>
12-
<section id="mflazyzoad" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label">
12+
<section id="mflazyzoad" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10619842770" translate="label">
1313
<label>Image Lazy Load</label>
1414
<tab>magefan</tab>
1515
<resource>Magefan_LazyLoad::config_magefan_lazyload</resource>
@@ -27,7 +27,7 @@
2727
<label>Product Key</label>
2828
<frontend_model>Magefan\Community\Block\Adminhtml\System\Config\Form\ProductKeyField</frontend_model>
2929
</field>
30-
<field id="lazy_blocks" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="30" translate="label" type="textarea">
30+
<field id="lazy_blocks" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="30" translate="label" type="textarea" canRestore="1">
3131
<label>Lazy Load Blocks</label>
3232
<comment><![CDATA[
3333
Lazy load functionality will be automatically applied to images inside this blocks. You can use block name, block PHP class, or .phtml template name. Please enter each name in a new line.<br/>
@@ -38,7 +38,7 @@
3838
folder/sometemplate.phtml
3939
]]></comment>
4040
</field>
41-
<field id="noscript" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="40" translate="label comment" type="select">
41+
<field id="noscript" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="40" translate="label comment" type="select" canRestore="1">
4242
<label>Include Noscript HTML Tag</label>
4343
<comment>The noscript HTML element defines a section of HTML that is inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser. This option enables the display of images even when JavaScript is disabled in the browser and lazy load js script cannot be loaded. Note that when enabled it adds extra HTML tags to the page.</comment>
4444
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>

etc/config.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
<default>
1212
<mflazyzoad>
1313
<general>
14+
<mfmodule>LazyLoad</mfmodule>
15+
<mftype>1</mftype>
1416
<lazy_blocks>footer
1517
category.products.list
1618
search_result_list
@@ -22,9 +24,8 @@ blog.post
2224
blog.posts.list
2325
blog.sidebar
2426
blog.post.relatedproducts
25-
product.info.description</lazy_blocks>
26-
<mfmodule>LazyLoad</mfmodule>
27-
<mftype>1</mftype>
27+
product.info.description
28+
</lazy_blocks>
2829
<noscript>1</noscript>
2930
</general>
3031
</mflazyzoad>

0 commit comments

Comments
 (0)