留言板
Adding javascript throuth theme
Hello everyone
I have a theme and my requirement says that, the theme should add a javascript to the every page that sets some javascript variables into every page.
Does anyone have any idea which can help me to get through this?
Thanks in advance.
I have a theme and my requirement says that, the theme should add a javascript to the every page that sets some javascript variables into every page.
Does anyone have any idea which can help me to get through this?
Thanks in advance.
Hitoshi Ozawa,修改在12 年前。
RE: Adding javascript throuth theme
Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
I'm not too sure what problem you're having. Just upload a js file and add a include it using the <script> tag based on a condition in your theme.