【问题标题】:Overriding Liferay JSP using a hook使用钩子覆盖 Liferay JSP
【发布时间】:2012-06-14 20:16:26
【问题描述】:

我正在尝试覆盖 Liferay 6.1 中的 JSP,即 html/portlet/enterprise_admin/settings/authentication.jsp。

我有

  • 创建了一个钩子(如果重要,使用 Eclipse)
  • <custom-jsp-dir>/WEB-INF/jsps</custom-jsp-dir> 添加到liferay-hook.xml
  • 创建了上述目录结构
  • 在那里复制 authentication.jsp 并修改它
  • 部署了钩子
  • (重启服务器,你永远不知道...)

部署似乎工作正常。在服务器上,我现在有 authentication.jsp 和 authentication.portal.jsp,前者包含我的更改。

但是,当我进入门户设置 -> 身份验证时,我没有看到任何更改

我错过了什么?

【问题讨论】:

    标签: jsp hook liferay liferay-6


    【解决方案1】:

    我猜路径不正确。 authentication.jsp的正确路径是

    /portal-web/docroot/html/portlet/portal_settings/authentication.jsp

    我检查了源代码,在 Liferay 6.1 中,没有称为企业管理员的 portlet。

    所以请更改文件夹结构。

    【讨论】:

    • 那是我的错误。这是一个愚蠢的。我从 6.0 复制了结构。谢谢!
    猜你喜欢
    • 1970-01-01
    • 2013-02-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-12
    • 1970-01-01
    • 2021-05-05
    • 1970-01-01
    相关资源
    最近更新 更多