Liferay Hook 覆盖当前 JS
在创建liferay钩子时,我可以使用一个特殊的标签来允许liferay使用我的特定javascript而不是默认的liferay javascript。
我想在我的钩子中用我自己的版本覆盖liferay session.js。
所以为了覆盖 jsp 你可以使用
<custom-jsp-dir>/custom_jsps</custom-jsp-dir>
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 for overriding jsp you can use
<custom-jsp-dir>/custom_jsps</custom-jsp-dir>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我希望像 JSP 一样覆盖非主题相关的 js。事实上,我已经看到了一个用于更新 Alloy-ui 的钩子,如果我没记错的话,这正是通过这些机制完成的。
您是否尝试过但它不起作用,或者您没有尝试它,因为您认为它不起作用?
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?