Error in Outputting Text
This may be something basic, but here is my code:
#set ($manzitems= $_XPathTool.selectNodes($contentRoot, '//customaccd/customaccd-items'))
#foreach ($manzi in $manzitems)
#if ($manzi)
#set ($accdheader = $_EscapeTool.xml($manzi.getChild('customaccd-header').text))
<p class="expander-header">$accdheader</p>
#set ($accdcontent = $_EscapeTool.xml($manzi.getChild('customaccd-content').text))
<div class="expander-content">
$accdcontent
</div>
#else
<p> </p>
#end
#end
I'm not able to output any text for the content section if it is anything other than plaintext. I thought by using the escape tool we avoid that issue?
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ryan Griffith on 09 May, 2014 12:11 PM
Hi,
Is the customaccd-content field a WSYIWYG field by chance? If so, try using the Serializer Tool to serialize the HTML content within the field:
Give this a try and let me know how this works out.
Please let me know if you have any questions.
Thanks!
2 Posted by msyed1984 on 12 May, 2014 07:44 PM
This fixed the issue thanks!
-Manzi
3 Posted by Ryan Griffith on 12 May, 2014 08:05 PM
Thank you for following up, Manzi. I am glad to hear the adjustment did the trick.
I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions.
Have a great day!
Ryan Griffith closed this discussion on 12 May, 2014 08:05 PM.