I wanted to embed a Javascript widget in the modules in TikiWiki. In HTML widgets in all CMS, the JS code is accepted, but the Tiki reports Syntax Error.
The code is so.
<script type="text/javascript" data-more-link="https://jobs.internetblogger.de" data-per-page="10" src="https://jobs.internetblogger.de/content-widget.js" async data-hide-button data-css=".az-jobs-list {width: 105%; margin: auto;}" data-hide-location></script>
And the syntax error looks like this.
Syntax error in template “3b7535cb97b637bf9c01cddb0202d9db5b95b4f0” on line 1 “
” - Unexpected “: “, expected one of: “}”
How can I fix it, because normally the JS widget works in other open source CMS, forums, wikis and blogs.
Thanks in advance.
Because Smarty templating engine uses curly brackets any JS containing them must be wrapped inside
{literal}...{/literal}block in the Tiki modules.