Fórum

Adding jQuery to Liferay DXP's default theme

Diego Figueroa, modificado 6 Anos atrás.

Adding jQuery to Liferay DXP's default theme

Junior Member Postagens: 38 Data de Entrada: 11/03/10 Postagens Recentes
Hello,

I am testing Liferay DXP and would like to know how to include the latest jquery library to use with all my web content portlets. So far I haven't found any simple way to do it as it was in 6.x (e.g. modify portal_normal.vm).

From what I can tell all .css & .js files are hidden so I don't know even where I would drop the file and I was testing directly from jquery.com but of course my browser won't load mixed content.

Any simple way to add js/css to all portlets on a vanilla install?

Thanks!
thumbnail
Mayur Patel, modificado 6 Anos atrás.

RE: Adding jQuery to Liferay DXP's default theme

Expert Postagens: 358 Data de Entrada: 17/11/10 Postagens Recentes
As per my knowledge, you should inherit the liferay default DXP theme and you can create a new theme on top of that. You should be able to override portal_normal.vm and js folders to add jQuery libraries.

Thanks !