Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi,

is there any way to use javascript animation in couchcms (without security escaping killing it)?
An HTML example would be helpful. We'll see how best to make it editable :)
Hi trendoman, you are right, of course, I should have given more details.
Sorry, I was frustrated :)

What I mean is, is there a way to place vector animation in a modal through the couchCMS admin interface, be it JSON, Javascript etc., while avoiding the CMS escaping key elements as ", <script> etc.
aztk wrote: Hi trendoman, you are right, of course, I should have given more details.
Sorry, I was frustrated :)

What I mean is, is there a way to place vector animation in a modal through the couchCMS admin interface, be it JSON, Javascript etc., while avoiding the CMS escaping key elements as ", <script> etc.

The <script> element need not be added via CMS's editable fields. It can be added automatically by placing simple logic in code. We don't need every bit to be inputted by a User via Adminpanel - I mean any HTML tags can perfectly appear in code if there is something (entered via Adminpanel) to be wrapped in them)
Code: Select all
<cms:if "<cms:not_empty myScriptContent  />">
    <script><cms:show myScriptContent /></script>
</cms:if>

- OR -

<cms:if myScriptContent>
    <script><cms:show myScriptContent /></script>
</cms:if>
4 posts Page 1 of 1
cron