Hi,
Whats best way to get the "Text version" to show the text with line breaks?
Im running on a AC platform version 6.1.1 Build 8770
Currently Im just getting a blankspace instead of the linebreak.
What i have done:
Created a .js template with the code below.
<% if ( content.@textVersion != '' ) { %><%= content.@textVersion%><% } else { %> No Text content inserted<% } %>
Added this to my Publication template as a Text model

Created the attribute in my schema.
<attribute label="Text Version" name="textVersion" type="memo" xml="true"/>
Created a tab with this attribute in my template.
<container codepage="1252" img="xtk:text.png" label="Text Version">
<container codepage="1252" label="Basic" type="frame">
<input xpath="@textVersion"/>
</container>
</container>
Results:
example:
Hi,
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit.
Best Regards,
Output:
Hi, Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. Best Regards,
Thanks in advance,
Jonas