0

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.

3

You can use

action="adminhtml/system_config/edit/section/YOUR_SECTION_NAME"

| improve this answer | |
-1

Please try below code

action='adminhtml/system_config/edit/section/YOUR_SECTION_NAME'

Instead of

action='admin/system_config/edit/section/'
| improve this answer | |
  • by adding my section name at the end, it works for me, thank you very much. – Paul Dong Jun 30 '16 at 23:46
  • You will need to add section name also at the end of this code. – Mohit Kumar Arora Jul 5 '16 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.