構造的に表示 平面上に表示 ツリー上に表示
スレッド数 [ 前へ | 次へ ]
toggle
Cameron McBride
How to create a new theme based off of "classic"?
2011/10/17 11:23
答え

Cameron McBride

ランク: Expert

投稿数: 277

参加年月日: 2011/02/08

最近の投稿

I am working through the new Liferay in Action book and am currently on the theme part of the book. The book has you create an empty theme and says that it will look like the "default". Well that is just not the case. The default theme (class) looks great and the empty theme...well, looks like a non-styled disaster.

I checked the build.xml file and I see this:
1<property name="theme.parent" value="_styled" />


So instead of using the default classic theme it seems like it's using the _styled directory. I tried changing "_styled" to "classic", rebuild and redeploy but it did not appear to make any difference. What is the correct way to tell it to use the classic theme and then I will apply my "_diffs"?
Walter Christian Guardia Casas
RE: How to create a new theme based off of "classic"?
2011/10/18 1:22
答え

Walter Christian Guardia Casas

ランク: Regular Member

投稿数: 126

参加年月日: 2010/05/05

最近の投稿

Hi,

The step you follow is correct, only need change the properties value from _style to classic. You should have a problem with temporal files, to development you need change some properties in the portal.properties like this:

theme.css.fast.load=false
theme.images.fast.load=false
javascript.fast.load=false
javascript.log.enabled=true
layout.template.cache.enabled=false
browser.launcher.url=
last.modified.check=false
openoffice.cache.enabled=false
velocity.engine.resource.manager.cache.enabled=false
com.liferay.portal.servlet.filters.cache.CacheFilter=false
com.liferay.portal.servlet.filters.theme.ThemePreviewFilter=true


This parameters you find in portal-developer.properties. I hope this can help you.

Regards,
Dhrutika Vyas
RE: How to create a new theme based off of "classic"?
2011/10/18 3:23
答え

Dhrutika Vyas

ランク: Expert

投稿数: 332

参加年月日: 2009/02/09

最近の投稿

You are right. You just need to change it in build.xml.

Check attached war for your reference.

Regards,
Dhrutika
添付ファイル: test-theme-6.0.11.1.war (1,283.6k)