 This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation.      DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more.   DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs.   DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace.   PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project.
  This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation.      DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more.   DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs.   DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace.   PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project.    « 返回到 テーマの概要  
  テーマの継承
デフォルトテーマはポートレットの基本スタイルしか定義しないテーマに基づいています。テーマ(theme)フォルダ内のbuild.xmlファイルには以下のような記述があります:
<project name="theme" basedir="." default="deploy"> <import file="../build-common-theme.xml" /> <property name="theme.parent" value="_styled" /> </project>
テーマがどのビルドイン・テーマを継承するかはtheme.parentプロパティで定義されています。_styledテーマの他にスタイルが無いも定義されていない_unstyledテーマを継承することもできます。スタイルテーマを利用する場合よりも、必要な作業が多くなりますが、一から自由にCSSファイルを定義することができます。
Liferayのデフォルトのclassicテーマを親テーマ(theme.parent)として利用することもできます。既存のテーマを継承することにより、短時間かつ少ない設定でテーマを作成することができます。ただし、既に多いの設定が行われているため、変更できるデザイン設定は限定されます。
Liferayは、このように短時間で新しいテーマを作成する仕組みと、自由にすべての設定を自分で行う仕組みを提供しています。
 19815 查看 
 