Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Roger Thal
Where/How to store common Javascript libraries
26 de Fevereiro de 2012 22:03
Resposta

Roger Thal

Ranking: New Member

Mensagens: 21

Data de entrada: 21 de Janeiro de 2012

Mensagens 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 ?
Rahul Pande
RE: Where/How to store common Javascript libraries
26 de Fevereiro de 2012 23:13
Resposta

Rahul Pande

Ranking: Expert

Mensagens: 308

Data de entrada: 6 de Julho de 2010

Mensagens 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
Hitoshi Ozawa
RE: Where/How to store common Javascript libraries
27 de Fevereiro de 2012 06:25
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7949

Data de entrada: 23 de Março de 2010

Mensagens 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.