开发者

Liferay Hook override current JS

开发者 https://www.devze.com 2023-03-16 14:33 出处:网络
Is there a special tag i can use when creating a liferay hook that allows liferay to use my specific javascript over the default liferay javascript.

Is there a special tag i can use when creating a liferay hook that allows liferay to use my specific javascript over the default liferay javascript.

I want to override the liferay session.js with my own version in my hook.

So fo开发者_如何学Pythonr overriding jsp you can use

<custom-jsp-dir>/custom_jsps</custom-jsp-dir>


I'd expect the non-theme-related js to be overridden just like JSPs. In fact, I've seen a hook for updating alloy-ui, and if memory doesn't serve me wrong, this has been done through exactly these mechanics.

Have you tried this but it didn't work or didn't you try it because you supposed it wouldn't work?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号