Hello Magento Friends,

In today’s blog, we will learn about How to Add Link on Store Configuration Fields Comment in Magento 2.

Adding links to comments in the store configuration fields in Magento 2 can be a useful way to provide additional information or direct users to relevant resources. This process can be beneficial for providing guidance, documentation, or any external references related to the configuration fields.

Here’s a step-by-step guide on how to add a link to a comment in store configuration fields in Magento 2:

Steps to Add Link on Store Configuration Fields Comment in Magento 2:

Step 1: First, create a system.xml file at the below path

{{magento_root}}/app/code/Vendor/Module/etc/adminhtml

Then add the code as follows

System configuration field with the frontend_model attributes. The frontend_model points to a custom block where we’ll define the field’s behavior.

Step 2: Now create a Block file called Link.php file at the below-mentioned path

{{magento_root}}/app/code/Vendor/Module/Block/Adminhtml/System/Config

Create a custom block for the frontend model:

Create a custom block to handle the frontend rendering and behavior of your field.

Output SS:

Link in configuration fields comment

Conclusion:

By following these steps, you can easily add a link to the comment section in the store configuration fields in Magento 2, enhancing the admin experience by providing additional guidance and resources.

Also, Check out,

If you have any doubts about performing the above steps, please connect with me through the comment section. Share the article with your friends and stay updated with us.

Happy Coding!

Click to rate this post!
[Total: 1 Average: 5]