掲示板
path of js in custom_freemaker theme
8年前 に abhishek kumar によって更新されました。
path of js in custom_freemaker theme
Regular Member 投稿: 138 参加年月日: 15/08/17 最新の投稿
hello folks,
somehow i stuck in middle of one of the task _
how to give the path of js in mine custom_freemaker_theme. ??
thanks
Abhishek
somehow i stuck in middle of one of the task _
how to give the path of js in mine custom_freemaker_theme. ??
thanks
Abhishek
8年前 に Bijan Vakili によって更新されました。
RE: path of js in custom_freemaker theme (回答)
Expert 投稿: 375 参加年月日: 09/03/10 最新の投稿
Note the theme init.ftl file; for Lifeary 6.2.x it is:
https://github.com/liferay/liferay-portal/blob/6.2.x/portal-web/docroot/html/themes/_unstyled/templates/init.ftl
In particular there's this assignment:
So you can use variable here:
javascript_folder
To create the path to the JS files; for example Liferay does this as well:
https://github.com/liferay/liferay-portal/blob/6.2.x/portal-web/docroot/html/themes/_unstyled/templates/init.ftl
In particular there's this assignment:
<#assign javascript_folder = theme_display.getPathThemeJavaScript() />
So you can use variable here:
javascript_folder
To create the path to the JS files; for example Liferay does this as well:
<#assign js_main_file = htmlUtil.escape(portalUtil.getStaticResourceURL(request, "${javascript_folder}/main.js")) />
8年前 に abhishek kumar によって更新されました。
RE: path of js in custom_freemaker theme
Regular Member 投稿: 138 参加年月日: 15/08/17 最新の投稿
thanku sir it is working !