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.
因为Smarty模板引擎使用花括号,所以包含它们的所有JS都必须包装在Tiki模块的{literal}...{/literal}
块中。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.