I have a admin config page.
Where i have successfully listed my module.
I want to add a text block with procedures to follow. What is the tag that i should use in system.xml in order to use a text block.
I dont want to display it using comment tag since the content is long and it looks cluttered. Also, Is there a option to Link a text in the custom module to an external website like
2 Answers 2
Are you asking for comment ?. If so, then you can use comment tag in your system.xml file.
<field id="display_text" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Display Text</label>
<comment>This text will display on the frontend.</comment>
</field>
-
No I dont want a comment. I want to list a few STEPS(procedures) in my custom module. Also is there a way to link a text to another website from the custom module?Karthickeyan N– Karthickeyan N2017年03月23日 08:01:42 +00:00Commented Mar 23, 2017 at 8:01
Here is the code can help you. You can also use your text block as a comment or lable in System.xml
<field id="FieldID" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Field label</label>
<validate>Validation</validate>
<comment>You can add your text block as a comment</comment>
</field>
For more detail look here
-
I dont want a comment. I need to add a long paragraph. which doesnt looks good when added as a comment tagKarthickeyan N– Karthickeyan N2017年03月23日 09:05:49 +00:00Commented Mar 23, 2017 at 9:05