Foren

multiple themes with different parents

Charles Senard, geändert vor 7 Jahren.

multiple themes with different parents

New Member Beiträge: 2 Beitrittsdatum: 22.03.17 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: multiple themes with different parents

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: multiple themes with different parents

New Member Beiträge: 2 Beitrittsdatum: 22.03.17 Neueste Beiträge
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