liferay ide 创建主题 Custom Classic Theme with Liferay IDE

转自:http://wamser.com/?p=59

Custom Classic Theme with Liferay IDE

I’ve seen a few post on the Liferay forums asking how to modify the classic theme for their own use.  Here is, in my opinion, the easiest way to do that.  I’m assuming you already have Liferay IDE downloaded, installed and working.  In this tutorial I’m using IDE 1.5, based on the SDK for Liferay 6.1 CE.

 

1. Start Liferay IDE and create a new project.

 

2.  Enter a Project name and select Theme as the plugin type.

 

3.  In the package explorer you should see something similar to the following.  Notice the directory _diffs under docroot folder.  This is where you’ll place all your custom code.

 

4.  I didn’t state this before, put you’ll need to also download the  portal source.  It’s located here.

Once you have that downloaded and extracted, go to the following directory location.

liferay-portal-src-6.1.0-ce-ga1 -> portal-web -> docroot -> html -> themes -> classic -> _diffs

5.  Drag and drop the css, images and js folders into the IDE on the _diffs directory.

 

6. You should have the following in the IDE.  You can see that when you do this the IDE automatically creates the css, images, js, templates directory for you under the docroot folder.

 

7.  In _diffs/css/custom.css delete the @import for both the green and orange css.

 

8.  Also delete the color_schemes folders in the directory _diffs/css and _diffs/images.  The classic theme contains 3 different colors.  We’re just making ours one.

 

9. Deploy to the server and you should now have your new theme available.


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值