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

Manthan Dave
9,9262 gold badges35 silver badges56 bronze badges
asked Mar 23, 2017 at 7:47

2 Answers 2

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>
answered Mar 23, 2017 at 8:00
1
  • 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? Commented Mar 23, 2017 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

answered Mar 23, 2017 at 8:39
1
  • I dont want a comment. I need to add a long paragraph. which doesnt looks good when added as a comment tag Commented Mar 23, 2017 at 9:05

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.