Skip to content

Commit

Permalink
Move config options to the developer configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
drew7721 committed Feb 2, 2020
1 parent 34fce27 commit cea065a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Api/WrapperInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
*/
interface WrapperInterface
{
const JK_CONFIG_BLOCK_HINTS_STATUS = 'justinkase_hints/global_setting/status';
const JK_CONFIG_BLOCK_HINTS_STATUS = 'dev/justinkase_hints/status';
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "justinkase/module-layouthints",
"description":"This is Magento 2 template hints on steroids!",
"description":"This is Magento 2 layout hints on steroids!",
"type": "magento2-module",
"version": "1.1.1",
"version": "1.1.2",
"license": [
"GPL-3.0"
],
Expand Down
19 changes: 5 additions & 14 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,12 @@

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="justinkase" translate="label" sortOrder="555">
<label>JustinKase</label>
</tab>

<section id="justinkase_hints" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Layout Hints</label>
<tab>justinkase</tab>
<resource>JustinKase_LayoutHints::config</resource>

<group id="global_setting" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>JustinKase - Better Template Hints</label>

<section id="dev">
<group id="justinkase_hints" translate="label" type="text" sortOrder="900" showInDefault="1" showInWebsite="1" showInStore="1">
<label>JustinKase - Layout Hints</label>
<field id="status" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show Block and Template Hints</label>
<comment><![CDATA[Show hints on front end.]]></comment>
<label>Layout Hints Status</label>
<comment>Not available in production mode</comment>
<source_model>Magento\Config\Model\Config\Source\Enabledisable</source_model>
</field>
</group>
Expand Down
8 changes: 4 additions & 4 deletions etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<justinkase_hints>
<global_setting>
<dev>
<justinkase_hints>
<status>0</status>
</global_setting>
</justinkase_hints>
</justinkase_hints>
</dev>
</default>
</config>
6 changes: 5 additions & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="JustinKase_LayoutHints" setup_version="1.1.1"/>
<module name="JustinKase_LayoutHints" setup_version="1.1.2">
<sequence>
<module name="Magento_Developer"/>
</sequence>
</module>
</config>

0 comments on commit cea065a

Please sign in to comment.