I have a section <MySection> defined in system.xml, and a menu item called Settings in menu.xml. <MySection> can be found in Mangento Admin: Stores->Configuration->MySection, The link for the Setting should be the url of <MySection>. I have tried to add
action='admin/system_config/edit/section/', but it doesn't work as the key in url is different. I have also tried to redirect to that link in controller by doing:
$resultRedirect = $this->resultRedirectFactory->create();
$resultRedirect->setUrl('/admin/admin/system_config/edit/section/easytranslationplatform');
return $resultRedirect;
it failed as well. So, my question is that how to add a menu item that can link to Store->Configuration-><mySection> page.
2 Answers 2
You can use
action="adminhtml/system_config/edit/section/YOUR_SECTION_NAME"
-
Thankyou so much!Wakar Ahamad– Wakar Ahamad2019年03月16日 11:15:31 +00:00Commented Mar 16, 2019 at 11:15
-
Are we able to link to a particular config "group" within a section?Nick Rolando– Nick Rolando2022年03月21日 22:28:00 +00:00Commented Mar 21, 2022 at 22:28
Please try below code
action='adminhtml/system_config/edit/section/YOUR_SECTION_NAME'
Instead of
action='admin/system_config/edit/section/'
-
by adding my section name at the end, it works for me, thank you very much.Paul Dong– Paul Dong2016年06月30日 23:46:44 +00:00Commented Jun 30, 2016 at 23:46
-
You will need to add section name also at the end of this code.Mohit Kumar Arora– Mohit Kumar Arora2016年07月05日 07:43:06 +00:00Commented Jul 5, 2016 at 7:43
Explore related questions
See similar questions with these tags.