掲示板
Adding javascript throuth theme
12年前 に Jignesh Gosai によって更新されました。
Adding javascript throuth theme
New Member 投稿: 11 参加年月日: 11/02/02 最新の投稿
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.
12年前 に Hitoshi Ozawa によって更新されました。
RE: Adding javascript throuth theme
Liferay Legend 投稿: 7942 参加年月日: 10/03/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.
12年前 に Samir Gami によって更新されました。
RE: Adding javascript throuth theme
Regular Member 投稿: 162 参加年月日: 11/02/04 最新の投稿
Agree with Hitoshi,
You can include javaScript file, like we embed in normal HTML file, using <script> tag.
You can include javaScript file, like we embed in normal HTML file, using <script> tag.