如何将现有主题目录导入到不同的Liferay服务器实例中



我正试图将一个主题(LP5 ellocian主题)从我的组织测试服务器导入到Liferay的本地实例,这样我就可以进行一些自定义主题开发,稍后将其上传回测试服务器。

我的问题是:对我来说,将LP5 ellocian主题目录导入Liferay本地实例的最佳方式是什么?

我尝试在Eclipse中创建一个新的Liferay主题项目,将LP5 ellocian主题/docsroot中的所有文件(_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 上运行

请记住,主题开发与救生筏6.1和救生筏6.2有很大不同。如果不重写主题的某些部分,就不可能取得成功。

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

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

可能的解决方案。

将主题部署到救生筏门户时出错"找不到指定主题id的主题"

https://www.themeray.com/blog/-/blogs/no-theme-found-for-specified-theme-id-%E2%80%A6-返回默认主题

希望这能有所帮助。

最新更新