Show custom module configuration in Admin Menu not in Store -> Setting -> Configuration
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am creating a custom module , now wanted to add module configuration options like enable/disable options
. I found many post that shows how to create these options using system.xml
but in that way it add the option in Store -> Setting -> Configuration
Till now i am able to crate configuration section In Store -> Setting -> Configuration
as shown below.
Any one share any post or link in which i can learn how to create these options in module admin menu pages not in Configuration
page.
I am trying to create same sections in my module page
as we have in Magento 1.9.x
In /var/www/html/magento2/app/code/CompanyName/ReviewRating/etc/adminhtml/system.xml
<?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>
<tab id="reviewrating" translate="label" sortOrder="10000">
<label>Reviewrating</label>
</tab>
<section id="reviewrating" translate="label" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>reviewrating</label>
<tab>reviewrating</tab>
<resource>CompanyName_ReviewRating::reviewrating</resource>
<group id="general" translate="label" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Item creation by schedule</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="cron_expression" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
<label>Add Item Cron Expression</label>
</field>
</group>
</section>
</system>
</config>
In /var/www/html/magento2/app/code/CompanyName/ReviewRating/etc/adminhtml/menu.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Backend/etc/menu.xsd">
<menu>
<add id="CompanyName_ReviewRating::parent" title="ReviewRating"
module="CompanyName_ReviewRating" sortOrder="100"
resource="CompanyName_ReviewRating::parent"/>
<add id="CompanyName_ReviewRating::index" title="ReviewRating Index"
module="CompanyName_ReviewRating" sortOrder="10"
action="reviewrating/index" resource="CompanyName_ReviewRating::index"
parent="CompanyName_ReviewRating::parent"/>
<add id="CompanyName_ReviewRating::settings" title="Settings" module="CompanyName_ReviewRating" sortOrder="30" action="adminhtml/system_config/edit/section/reviewrating/" resource="CompanyName_ReviewRating::settings"/>
</menu>
</config>
configuration magento2.2 adminmenu
add a comment |
I am creating a custom module , now wanted to add module configuration options like enable/disable options
. I found many post that shows how to create these options using system.xml
but in that way it add the option in Store -> Setting -> Configuration
Till now i am able to crate configuration section In Store -> Setting -> Configuration
as shown below.
Any one share any post or link in which i can learn how to create these options in module admin menu pages not in Configuration
page.
I am trying to create same sections in my module page
as we have in Magento 1.9.x
In /var/www/html/magento2/app/code/CompanyName/ReviewRating/etc/adminhtml/system.xml
<?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>
<tab id="reviewrating" translate="label" sortOrder="10000">
<label>Reviewrating</label>
</tab>
<section id="reviewrating" translate="label" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>reviewrating</label>
<tab>reviewrating</tab>
<resource>CompanyName_ReviewRating::reviewrating</resource>
<group id="general" translate="label" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Item creation by schedule</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="cron_expression" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
<label>Add Item Cron Expression</label>
</field>
</group>
</section>
</system>
</config>
In /var/www/html/magento2/app/code/CompanyName/ReviewRating/etc/adminhtml/menu.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Backend/etc/menu.xsd">
<menu>
<add id="CompanyName_ReviewRating::parent" title="ReviewRating"
module="CompanyName_ReviewRating" sortOrder="100"
resource="CompanyName_ReviewRating::parent"/>
<add id="CompanyName_ReviewRating::index" title="ReviewRating Index"
module="CompanyName_ReviewRating" sortOrder="10"
action="reviewrating/index" resource="CompanyName_ReviewRating::index"
parent="CompanyName_ReviewRating::parent"/>
<add id="CompanyName_ReviewRating::settings" title="Settings" module="CompanyName_ReviewRating" sortOrder="30" action="adminhtml/system_config/edit/section/reviewrating/" resource="CompanyName_ReviewRating::settings"/>
</menu>
</config>
configuration magento2.2 adminmenu
where want to add your configuration key under which tab I send you the code to put in the system.xml
– Mohamed El Mrabet
Nov 22 '17 at 20:46
@MohamedElMrabet sir i updated my question , may be now its clear what i am trying to achieve. Thank You
– inrsaurabh
Nov 23 '17 at 5:28
add a comment |
I am creating a custom module , now wanted to add module configuration options like enable/disable options
. I found many post that shows how to create these options using system.xml
but in that way it add the option in Store -> Setting -> Configuration
Till now i am able to crate configuration section In Store -> Setting -> Configuration
as shown below.
Any one share any post or link in which i can learn how to create these options in module admin menu pages not in Configuration
page.
I am trying to create same sections in my module page
as we have in Magento 1.9.x
In /var/www/html/magento2/app/code/CompanyName/ReviewRating/etc/adminhtml/system.xml
<?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>
<tab id="reviewrating" translate="label" sortOrder="10000">
<label>Reviewrating</label>
</tab>
<section id="reviewrating" translate="label" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>reviewrating</label>
<tab>reviewrating</tab>
<resource>CompanyName_ReviewRating::reviewrating</resource>
<group id="general" translate="label" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Item creation by schedule</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="cron_expression" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
<label>Add Item Cron Expression</label>
</field>
</group>
</section>
</system>
</config>
In /var/www/html/magento2/app/code/CompanyName/ReviewRating/etc/adminhtml/menu.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Backend/etc/menu.xsd">
<menu>
<add id="CompanyName_ReviewRating::parent" title="ReviewRating"
module="CompanyName_ReviewRating" sortOrder="100"
resource="CompanyName_ReviewRating::parent"/>
<add id="CompanyName_ReviewRating::index" title="ReviewRating Index"
module="CompanyName_ReviewRating" sortOrder="10"
action="reviewrating/index" resource="CompanyName_ReviewRating::index"
parent="CompanyName_ReviewRating::parent"/>
<add id="CompanyName_ReviewRating::settings" title="Settings" module="CompanyName_ReviewRating" sortOrder="30" action="adminhtml/system_config/edit/section/reviewrating/" resource="CompanyName_ReviewRating::settings"/>
</menu>
</config>
configuration magento2.2 adminmenu
I am creating a custom module , now wanted to add module configuration options like enable/disable options
. I found many post that shows how to create these options using system.xml
but in that way it add the option in Store -> Setting -> Configuration
Till now i am able to crate configuration section In Store -> Setting -> Configuration
as shown below.
Any one share any post or link in which i can learn how to create these options in module admin menu pages not in Configuration
page.
I am trying to create same sections in my module page
as we have in Magento 1.9.x
In /var/www/html/magento2/app/code/CompanyName/ReviewRating/etc/adminhtml/system.xml
<?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>
<tab id="reviewrating" translate="label" sortOrder="10000">
<label>Reviewrating</label>
</tab>
<section id="reviewrating" translate="label" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>reviewrating</label>
<tab>reviewrating</tab>
<resource>CompanyName_ReviewRating::reviewrating</resource>
<group id="general" translate="label" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Item creation by schedule</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="cron_expression" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
<label>Add Item Cron Expression</label>
</field>
</group>
</section>
</system>
</config>
In /var/www/html/magento2/app/code/CompanyName/ReviewRating/etc/adminhtml/menu.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Backend/etc/menu.xsd">
<menu>
<add id="CompanyName_ReviewRating::parent" title="ReviewRating"
module="CompanyName_ReviewRating" sortOrder="100"
resource="CompanyName_ReviewRating::parent"/>
<add id="CompanyName_ReviewRating::index" title="ReviewRating Index"
module="CompanyName_ReviewRating" sortOrder="10"
action="reviewrating/index" resource="CompanyName_ReviewRating::index"
parent="CompanyName_ReviewRating::parent"/>
<add id="CompanyName_ReviewRating::settings" title="Settings" module="CompanyName_ReviewRating" sortOrder="30" action="adminhtml/system_config/edit/section/reviewrating/" resource="CompanyName_ReviewRating::settings"/>
</menu>
</config>
configuration magento2.2 adminmenu
configuration magento2.2 adminmenu
edited Nov 23 '17 at 7:10
inrsaurabh
asked Nov 22 '17 at 15:20
inrsaurabhinrsaurabh
1,110931
1,110931
where want to add your configuration key under which tab I send you the code to put in the system.xml
– Mohamed El Mrabet
Nov 22 '17 at 20:46
@MohamedElMrabet sir i updated my question , may be now its clear what i am trying to achieve. Thank You
– inrsaurabh
Nov 23 '17 at 5:28
add a comment |
where want to add your configuration key under which tab I send you the code to put in the system.xml
– Mohamed El Mrabet
Nov 22 '17 at 20:46
@MohamedElMrabet sir i updated my question , may be now its clear what i am trying to achieve. Thank You
– inrsaurabh
Nov 23 '17 at 5:28
where want to add your configuration key under which tab I send you the code to put in the system.xml
– Mohamed El Mrabet
Nov 22 '17 at 20:46
where want to add your configuration key under which tab I send you the code to put in the system.xml
– Mohamed El Mrabet
Nov 22 '17 at 20:46
@MohamedElMrabet sir i updated my question , may be now its clear what i am trying to achieve. Thank You
– inrsaurabh
Nov 23 '17 at 5:28
@MohamedElMrabet sir i updated my question , may be now its clear what i am trying to achieve. Thank You
– inrsaurabh
Nov 23 '17 at 5:28
add a comment |
2 Answers
2
active
oldest
votes
For this you have to add menu for your module's configuration in menu.xml
file, you can add below code in your menu.xml
to add link of your module's configuration
<add id="Namespace_Module::settings" title="Settings" module="Namespace_Module" parent="Namespace_Module::your_parent_menu_id" sortOrder="30" action="adminhtml/system_config/edit/section/your_section_id/" resource="Namespace_Module::settings"/>
can you please explain how to use it.
– inrsaurabh
Nov 23 '17 at 6:56
have you created menu.xml in you module?
– Piyush
Nov 23 '17 at 6:57
yes i posted above, i copied it , no mush details how it works currently
– inrsaurabh
Nov 23 '17 at 6:59
you just have to change Namespace_Module, section id, resource and parent id from above code
– Piyush
Nov 23 '17 at 7:02
section id you will get in your system.xml file
– Piyush
Nov 23 '17 at 7:02
|
show 4 more comments
You can refer below link to show custom module configuration in Admin Menu in Magento2 -
https://github.com/jainmegha5395/system-config
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f202781%2fshow-custom-module-configuration-in-admin-menu-not-in-store-setting-config%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
For this you have to add menu for your module's configuration in menu.xml
file, you can add below code in your menu.xml
to add link of your module's configuration
<add id="Namespace_Module::settings" title="Settings" module="Namespace_Module" parent="Namespace_Module::your_parent_menu_id" sortOrder="30" action="adminhtml/system_config/edit/section/your_section_id/" resource="Namespace_Module::settings"/>
can you please explain how to use it.
– inrsaurabh
Nov 23 '17 at 6:56
have you created menu.xml in you module?
– Piyush
Nov 23 '17 at 6:57
yes i posted above, i copied it , no mush details how it works currently
– inrsaurabh
Nov 23 '17 at 6:59
you just have to change Namespace_Module, section id, resource and parent id from above code
– Piyush
Nov 23 '17 at 7:02
section id you will get in your system.xml file
– Piyush
Nov 23 '17 at 7:02
|
show 4 more comments
For this you have to add menu for your module's configuration in menu.xml
file, you can add below code in your menu.xml
to add link of your module's configuration
<add id="Namespace_Module::settings" title="Settings" module="Namespace_Module" parent="Namespace_Module::your_parent_menu_id" sortOrder="30" action="adminhtml/system_config/edit/section/your_section_id/" resource="Namespace_Module::settings"/>
can you please explain how to use it.
– inrsaurabh
Nov 23 '17 at 6:56
have you created menu.xml in you module?
– Piyush
Nov 23 '17 at 6:57
yes i posted above, i copied it , no mush details how it works currently
– inrsaurabh
Nov 23 '17 at 6:59
you just have to change Namespace_Module, section id, resource and parent id from above code
– Piyush
Nov 23 '17 at 7:02
section id you will get in your system.xml file
– Piyush
Nov 23 '17 at 7:02
|
show 4 more comments
For this you have to add menu for your module's configuration in menu.xml
file, you can add below code in your menu.xml
to add link of your module's configuration
<add id="Namespace_Module::settings" title="Settings" module="Namespace_Module" parent="Namespace_Module::your_parent_menu_id" sortOrder="30" action="adminhtml/system_config/edit/section/your_section_id/" resource="Namespace_Module::settings"/>
For this you have to add menu for your module's configuration in menu.xml
file, you can add below code in your menu.xml
to add link of your module's configuration
<add id="Namespace_Module::settings" title="Settings" module="Namespace_Module" parent="Namespace_Module::your_parent_menu_id" sortOrder="30" action="adminhtml/system_config/edit/section/your_section_id/" resource="Namespace_Module::settings"/>
edited Nov 23 '17 at 5:50
answered Nov 23 '17 at 5:42
PiyushPiyush
4,83972054
4,83972054
can you please explain how to use it.
– inrsaurabh
Nov 23 '17 at 6:56
have you created menu.xml in you module?
– Piyush
Nov 23 '17 at 6:57
yes i posted above, i copied it , no mush details how it works currently
– inrsaurabh
Nov 23 '17 at 6:59
you just have to change Namespace_Module, section id, resource and parent id from above code
– Piyush
Nov 23 '17 at 7:02
section id you will get in your system.xml file
– Piyush
Nov 23 '17 at 7:02
|
show 4 more comments
can you please explain how to use it.
– inrsaurabh
Nov 23 '17 at 6:56
have you created menu.xml in you module?
– Piyush
Nov 23 '17 at 6:57
yes i posted above, i copied it , no mush details how it works currently
– inrsaurabh
Nov 23 '17 at 6:59
you just have to change Namespace_Module, section id, resource and parent id from above code
– Piyush
Nov 23 '17 at 7:02
section id you will get in your system.xml file
– Piyush
Nov 23 '17 at 7:02
can you please explain how to use it.
– inrsaurabh
Nov 23 '17 at 6:56
can you please explain how to use it.
– inrsaurabh
Nov 23 '17 at 6:56
have you created menu.xml in you module?
– Piyush
Nov 23 '17 at 6:57
have you created menu.xml in you module?
– Piyush
Nov 23 '17 at 6:57
yes i posted above, i copied it , no mush details how it works currently
– inrsaurabh
Nov 23 '17 at 6:59
yes i posted above, i copied it , no mush details how it works currently
– inrsaurabh
Nov 23 '17 at 6:59
you just have to change Namespace_Module, section id, resource and parent id from above code
– Piyush
Nov 23 '17 at 7:02
you just have to change Namespace_Module, section id, resource and parent id from above code
– Piyush
Nov 23 '17 at 7:02
section id you will get in your system.xml file
– Piyush
Nov 23 '17 at 7:02
section id you will get in your system.xml file
– Piyush
Nov 23 '17 at 7:02
|
show 4 more comments
You can refer below link to show custom module configuration in Admin Menu in Magento2 -
https://github.com/jainmegha5395/system-config
New contributor
add a comment |
You can refer below link to show custom module configuration in Admin Menu in Magento2 -
https://github.com/jainmegha5395/system-config
New contributor
add a comment |
You can refer below link to show custom module configuration in Admin Menu in Magento2 -
https://github.com/jainmegha5395/system-config
New contributor
You can refer below link to show custom module configuration in Admin Menu in Magento2 -
https://github.com/jainmegha5395/system-config
New contributor
New contributor
answered 28 mins ago
Megha JainMegha Jain
111
111
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f202781%2fshow-custom-module-configuration-in-admin-menu-not-in-store-setting-config%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
where want to add your configuration key under which tab I send you the code to put in the system.xml
– Mohamed El Mrabet
Nov 22 '17 at 20:46
@MohamedElMrabet sir i updated my question , may be now its clear what i am trying to achieve. Thank You
– inrsaurabh
Nov 23 '17 at 5:28