0

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

0

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 Mar 23 '17 at 8:01
0

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 tag – Karthickeyan N Mar 23 '17 at 9:05

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.