-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6 Allow different behavior for homepage
- Loading branch information
Showing
4 changed files
with
57 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
<?xml version="1.0"?> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> | ||
<system> | ||
<!-- Ajout d'un nouveau groupe dans la section cms existante --> | ||
<section id="cms"> | ||
<group id="canonical" translate="label" type="text" sortOrder="200" showInDefault="1" showInWebsite="1" | ||
showInStore="1"> | ||
<label>Canonical urls</label> | ||
<field id="enable_canonical" translate="label" type="select" sortOrder="100" showInDefault="1" showInWebsite="1" | ||
showInStore="1" canRestore="1"> | ||
<label>Enable Canonical for cms pages</label> | ||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model> | ||
</field> | ||
<field id="use_trailing_slash" translate="label" type="select" sortOrder="200" showInDefault="1" showInWebsite="1" | ||
showInStore="1" canRestore="1"> | ||
<label>Use trailing slash</label> | ||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model> | ||
</field> | ||
</group> | ||
</section> | ||
</system> | ||
</config> | ||
<?xml version="1.0"?> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> | ||
<system> | ||
<section id="cms"> | ||
<group id="canonical" translate="label" type="text" sortOrder="200" showInDefault="1" showInWebsite="1" | ||
showInStore="1"> | ||
<label>Canonical urls</label> | ||
<field id="enable_canonical" translate="label" type="select" sortOrder="100" showInDefault="1" showInWebsite="1" | ||
showInStore="1" canRestore="1"> | ||
<label>Enable Canonical for cms pages</label> | ||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model> | ||
</field> | ||
<field id="use_trailing_slash" translate="label" type="select" sortOrder="200" showInDefault="1" showInWebsite="1" | ||
showInStore="1" canRestore="1"> | ||
<label>Use trailing slash</label> | ||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model> | ||
</field> | ||
<field id="use_trailing_slash_homepage" translate="label" type="select" sortOrder="200" showInDefault="1" showInWebsite="1" | ||
showInStore="1" canRestore="1"> | ||
<label>Use trailing slash for homepage</label> | ||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model> | ||
</field> | ||
</group> | ||
</section> | ||
</system> | ||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<?xml version="1.0"?> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd"> | ||
<default> | ||
<cms> | ||
<canonical> | ||
<enable_canonical>1</enable_canonical> | ||
<use_trailing_slash>0</use_trailing_slash> | ||
</canonical> | ||
</cms> | ||
</default> | ||
</config> | ||
<?xml version="1.0"?> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd"> | ||
<default> | ||
<cms> | ||
<canonical> | ||
<enable_canonical>1</enable_canonical> | ||
<use_trailing_slash>0</use_trailing_slash> | ||
<use_trailing_slash_homepage>0</use_trailing_slash_homepage> | ||
</canonical> | ||
</cms> | ||
</default> | ||
</config> |