Fórum

multiple themes with different parents

Charles Senard, modificado 7 Anos atrás.

multiple themes with different parents

New Member Postagens: 2 Data de Entrada: 22/03/17 Postagens Recentes
Hello there,

I am working on a theme development with Liferay 6.2.5.
I need to allow the administrator to choose between two themes that have to coexist in the same package.
One already exists and its parent is 'classic'.
My new theme needs to have the '_unstyled' parent.
I can't find any information on how to specify a different parent for each theme. Is it possible ?

Thanks a lot for your help.

Charles

Please find here the current liferay-look-and-feel.xml and the <properties> tag from pom.xml :


<look-and-feel>
	<compatibility>
		<version>6.2.1+</version>
	</compatibility>
	<theme id="CUSTOM_THEME_1" name="CUSTOM 1">
		<root-path>/V1</root-path>
	</theme>
	<theme id="CUSTOM_THEME_2" name="CUSTOM 2">
		<root-path>/V2</root-path>
	</theme>
</look-and-feel>



<properties>
		<liferay.theme.parent>classic</liferay.theme.parent>
		<liferay.theme.type>vm</liferay.theme.type>
		<project.build.sourceencoding>ISO-8859-1</project.build.sourceencoding>		
		<liferay.version>6.2.5</liferay.version>
		<liferay.maven.plugin.version>6.2.10.6</liferay.maven.plugin.version>
		<war.name>CUSTOME_THEME</war.name>
</properties>
thumbnail
Olaf Kock, modificado 7 Anos atrás.

RE: multiple themes with different parents

Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
Charles Senard:
I can't find any information on how to specify a different parent for each theme. Is it possible ?


it's in build.xml
Charles Senard, modificado 7 Anos atrás.

RE: multiple themes with different parents

New Member Postagens: 2 Data de Entrada: 22/03/17 Postagens Recentes
Hello Olaf and thank you for your fast answer;

Can you be a bit more precise and give me the syntax to use in build.xml to achieve this ?
Thanks a lot
Charles