Fórum
Where/How to store common Javascript libraries
Roger Thal, modificado 12 Anos atrás.
Where/How to store common Javascript libraries
New Member Postagens: 21 Data de Entrada: 21/01/12 Postagens Recentes
Thanks to some of the articles here I was able to get my portlet working with Javascript libraries (hint: use request.getContextPath()).
But now many of the different kinds of portlets we'll be developing will use the same Javascript libraries. Where should the common JS libraries be in and how to access them from the portlets ?
But now many of the different kinds of portlets we'll be developing will use the same Javascript libraries. Where should the common JS libraries be in and how to access them from the portlets ?
Rahul Pande, modificado 12 Anos atrás.
RE: Where/How to store common Javascript libraries
Expert Postagens: 310 Data de Entrada: 07/07/10 Postagens Recentes
Hi Roger,
You can put common js files in the theme and include it in .vm file, so they are available throughout the portal.
Thanks
Rahul
You can put common js files in the theme and include it in .vm file, so they are available throughout the portal.
Thanks
Rahul
Hitoshi Ozawa, modificado 12 Anos atrás.
RE: Where/How to store common Javascript libraries
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Did you check the following in portal-ext.properties?
#
# Set a list of JavaScript files that will be loaded automatically in
# /html/common/themes/top_js.jsp.
#
# Set a list of JavaScript files that will be loaded automatically in
# /html/common/themes/top_js.jsp.