Reputation: 185
Most of the text in my dialog.xml is labels for form inputs.
Is there a way to have just a plain paragraph that offers the user some explanation?
Upvotes: 1
Views: 1140
Reputation: 7066
You can use the label
xtype:
<mylabel
jcr:primaryType="cq:Widget"
fieldLabel="My label"
html="Some description text in <b>bold</b>"
xtype="label"/>
As you can see, you can even use simple tags within the html property like <b>
and <i>
. Of course the brackets escaped as <
and >
Upvotes: 5
Reputation: 1921
You can use a displayfield
xtype. Read the docs for the CQ5 Widget API CQ.Ext.form.DisplayField
. Here is an example:
<instructions
jcr:primaryType="cq:Widget"
fieldLabel="Instructions"
fieldDescription="Insert instructions for your authors here."
xtype="displayfield" />
You can use long paragraphs and you can insert HTML by using character entities. For example:
This will bold <strong>this text</strong>.
Upvotes: 3