I was referring the link
http://wem.help.adobe.com/enterprise/en_US/10-0/wem/howto/taglib.html
<cq:text value="textmessage" tagName="h2" placeholder="textvalue" default="textvalue" />
it renders as
<h2>textmessage</h2>
but i would want to render it as
<h2 style="text-align: center;">textmessage</h2>
please let me know how could i acheive it
Solved! Go to Solution.
Views
Replies
Total Likes
You can't do this with the <cq:text> tag. If you wanted to use the <cq:text> tag, you would have to do this through a CSS class (i.e. the tagClass attribute).
Views
Replies
Total Likes
You can't do this with the <cq:text> tag. If you wanted to use the <cq:text> tag, you would have to do this through a CSS class (i.e. the tagClass attribute).
Views
Replies
Total Likes
If you are using RTE then you can use Justify or Styles plugin for the same.
If you are not using RTE then you can have a tab and a widget of xtype - componentstyles.
With component styles you can provide options to wrap the content of component with custom styles.
Take a look at foundation textimage component (/libs/foundation/components/textimage/dialog/items/tab4)
the styles that you select while configuring content that style class gets placed in your autogenerated CQ Div tag.
Hope it helps.
- Runal
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies