Create system config in magento 2
Posted at: September 21, 2018 12:51 PM
Update menu.xml
Rsgitech\News\etc\adminhtml\menu.xml
Add system configuration link in menu
Create file system.xml
Rsgitech\News\etc\adminhtml\system.xml
Create file config.xml
Rsgitech\News\etc\config.xml
You can set default value in system configuration
Then run below commands
Complete!!
Download source code: Download
This lesson also available on YouTube
More Posts - Magento 2 Module Development
- Create admin menu in magento 2
- Create system config in magento 2
- Create helper and get system config value Magento 2
- How to create table and install sample data in Magento 2
- Create collection in Magento 2
- Create admin grid listing in Magento 2
- How to add grid items in Magento 2
- How to edit grid items in Magento 2
- How to delete grid items in Magento 2
- How to show collection on frontend with pagination in Magento 2
- How to get single record from collection in Magento 2