【问题标题】:How to import existing theme directory into different Liferay server instance?如何将现有的主题目录导入不同的 Liferay 服务器实例?
【发布时间】:2015-06-13 04:14:01
【问题描述】:

我正在尝试将一个主题 (LP5-ellucian-theme) 从我的组织测试服务器导入到 Liferay 的本地实例,以便我可以进行一些自定义主题开发,然后将其上传回测试服务器。

我的问题:将 LP5-ellucian-theme 目录导入本地 Liferay 实例的最佳方式是什么?

我尝试在 Eclipse 中创建一个新的 Liferay 主题项目,将 LP5-ellucian-theme/docroot 中的所有文件(_diffs 除外)复制到我的新主题的 _diffs 文件夹中,然后部署到服务器。但是,当我将门户显示设置切换为使用此 lp5 主题时,主题保持不变并且我收到以下消息:

16:12:13,798 WARN  [http-bio-8080-exec-6][ThemeLocalServiceImpl:151] No theme found for specified theme id lp5_WAR_lp5theme. Returning the default theme.
16:12:14,489 WARN  [http-bio-8080-exec-6][ThemeLocalServiceImpl:151] No theme found for specified theme id lp5_WAR_lp5theme. Returning the default theme.
16:12:14,491 WARN  [http-bio-8080-exec-11][ThemeLocalServiceImpl:151] No theme found for specified theme id lp5_WAR_lp5theme. Returning the default theme.
16:12:14,492 WARN  [http-bio-8080-exec-12][ThemeLocalServiceImpl:151] No theme found for specified theme id lp5_WAR_lp5theme. Returning the default theme.
16:12:14,492 WARN  [http-bio-8080-exec-10][ThemeLocalServiceImpl:151] No theme found for specified theme id lp5_WAR_lp5theme. Returning the default theme.
16:12:14,492 WARN  [http-bio-8080-exec-1][ThemeLocalServiceImpl:151] No theme found for specified theme id lp5_WAR_lp5theme. Returning the default theme.
16:12:15,895 WARN  [http-bio-8080-exec-1][ThemeLocalServiceImpl:151] No theme found for specified theme id lp5_WAR_lp5theme. Returning the default theme.
16:12:16,312 WARN  [http-bio-8080-exec-4][ThemeLocalServiceImpl:151] No theme found for specified theme id lp5_WAR_lp5theme. Returning the default theme.
16:12:18,638 WARN  [http-bio-8080-exec-12][ThemeLocalServiceImpl:151] No theme found for specified theme id lp5_WAR_lp5theme. Returning the default theme.

有没有更好的方法可以做到这一点?

这是我的本地开发环境详细信息:

  • 插件 SDK 6.2
  • Liferay Portal-Tomcat 6.2
  • JRE 7.0
  • Eclipse 开普勒

我从中提取主题的测试服务器正在 Liferay Portal 6.1 上运行

【问题讨论】:

    标签: plugins liferay liferay-6 liferay-theme liferay-ide


    【解决方案1】:

    请记住,主题开发从 liferay 6.1 到 liferay 6.2 是完全不同的。 如果不重写主题的某些部分,您将无法获得成功的结果。

    从头开始编写一个新主题。这是最好的方法。

    【讨论】:

      【解决方案2】:

      我建议您在 6.2 环境中使用 create 命令创建一个新主题,然后将代码添加到生成的文件中。您不应该只复制完整的文件。该错误看起来像您的主题未注册。您是否确认您的主题已正确部署以及部署时使用的名称?

      【讨论】:

        【解决方案3】:
        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-07-17
        • 2018-02-03
        • 1970-01-01
        • 1970-01-01
        • 2012-11-18
        • 2016-08-05
        相关资源
        最近更新 更多