简体   繁体   English

如何导入Liferay主题?

[英]How to import Liferay theme?

I am trying to import a default Luminis Platform theme (LP5-ellucian-theme) which I copied from a Test server onto my local machines so I can do some theme development. 我正在尝试导入一个默认的Luminis Platform主题(LP5-ellucian-theme),该主题是从测试服务器复制到本地计算机上的,以便可以进行一些主题开发。 I copied this theme folder into my PluginsSDK/themes/ directory, but when I go to File->New->Liferay Project from Existing Source and select this theme directory Eclipse tells me "Invalid project location". 我将此主题文件夹复制到我的PluginsSDK / themes /目录中,但是当我从“现有源”转到“文件”->“新建”->“ Liferay项目”并选择此主题目录时,Eclipse告诉我“无效的项目位置”。

What am I doing wrong here and/or is there another way to import this theme onto my local instance of Liferay? 我在这里做错什么,和/或还有另一种方法可以将该主题导入到我的本地Liferay实例中?

Test server: 测试服务器:

  • Liferay Portal 6.1 Liferay Portal 6.1

My local machine: 我的本地机器:

  • Liferay Portal 6.1 Liferay Portal 6.1
  • Plugins SDK 6.1.2 插件SDK 6.1.2
  • Liferay IDE 2.0 Liferay IDE 2.0
  • Eclipse Kepler 日蚀开普勒

无效的项目位置

SDK目录中的主题文件夹

Theme project has different folder structure in case of plugin-sdk and in tomcat/webapps when its deployed. 对于plugin-sdk以及部署后在tomcat / webapps中,主题项目具有不同的文件夹结构。 In plugin-sdk, you will find folder named as _diff which contains custom css,vm etc file which overrides parent theme. 在plugin-sdk中,您将找到名为_diff的文件夹,该文件夹包含覆盖父主题的自定义css,vm等文件。

I would suggest to create new theme in plugin-sdk, and just have modified css, vm files of your server theme copied under _diffs folder. 我建议在plugin-sdk中创建新主题,然后将服务器主题的css,vm文件复制到_diffs文件夹下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM