Forum Discussion
KaelaC
11 years agoLithium Alumni (Retired)
What's the javascript around this value? If you want to writing out to js rather than html you may need to encode your output. Something like ${originalTopicSubject?html}
iftomkins
11 years agoMaven
Here is the code that is in the Desktop Hitbox area:
<#if page.name?lower_case == "forumtopicpage" >
<#assign originalTopicSubject = rest("/messages/id/${page.context.message.id}/root/subject").value>
var topicTitle = '${originalTopicSubject}';
jQuery(".lia-message-subject-banner").each(function(){
jQuery(this).text(topicTitle);
});
</#if>
And here is the freemarker error response (made some adjustments since last time):
https://www.dropbox.com/s/59dehi42ngfvx33/Screenshot%202014-02-05%2016.08.57.png
thanks so much!
Related Content
- 2 years ago
- 4 years ago