Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Narmada V
customizing the theme
15 de Junho de 2012 01:23
Resposta

Narmada V

Ranking: Junior Member

Mensagens: 37

Data de entrada: 13 de Maio de 2012

Mensagens recentes

Hi all,

i want to customize the theme of the pages in liferay. i have added the new theme id in liferay-look-and-feel.xml as below.
<theme id="testTheme" name="TestTheme">
<root-path>/html/themes/testTheme</root-path>
<templates-path>/html/themes/testTheme/templates</templates-path>
<images-path>/html/themes/testTheme/images</images-path>
<template-extension >vm</template-extension>
<settings>
<setting key="my-setting" value="example-value"/>
</settings>
<color-scheme id="01" name="Red">
<css-class>red</css-class>
<color-scheme-images-path>${images-path}/color_schemes/${css-class}</color-scheme-images-path>
</color-scheme>
</theme>

i have modified the background color in custom.css present in .........\ROOT\html\themes\testTheme\css folder but the background color doesnt change.
so i have changed the background color in red.css present in ...........\ROOT\html\themes\testTheme\css\color_schemes even then my background color doesnot change.

I am having same problem even with the background images. Can any one tell me the exact file where i need to change the color and image to get these changes to be reflected on liferay
Kavita Gupta
RE: customizing the theme
15 de Junho de 2012 10:11
Resposta

Kavita Gupta

Ranking: Junior Member

Mensagens: 64

Data de entrada: 12 de Março de 2008

Mensagens recentes

Hi,

You have directly created your theme in Root FOLDER or you have used plugin for creating your custom theme?

Regards,
Kavita
Narmada V
RE: customizing the theme
17 de Junho de 2012 21:12
Resposta

Narmada V

Ranking: Junior Member

Mensagens: 37

Data de entrada: 13 de Maio de 2012

Mensagens recentes

i have directly created a theme directly in the ROOT folder.

the changes i am doing are reflecting in the portal but after a long time lag. I donot know why this is happening.

Even the changes are different in Mozilla and IE.
Sandeep Nair
RE: customizing the theme
17 de Junho de 2012 21:49
Resposta

Sandeep Nair

Ranking: Liferay Legend

Mensagens: 1721

Data de entrada: 5 de Novembro de 2008

Mensagens recentes

Hi,

Its not the recommended way to create themes. You should use plugins sdk to create the theme.

Regards,
Sandeep
Nikhil Nishchal
RE: customizing the theme
26 de Junho de 2012 00:36
Resposta

Nikhil Nishchal

Ranking: Regular Member

Mensagens: 136

Data de entrada: 21 de Junho de 2012

Mensagens recentes

Try to check after clearing the cache from control panel.
Control panel>server> Server Administration
Clear content cached by this VM.
Clear content cached across the cluster.
(excute) those
Sachin Mane
RE: customizing the theme
26 de Junho de 2012 04:57
Resposta

Sachin Mane

Ranking: Junior Member

Mensagens: 76

Data de entrada: 9 de Abril de 2012

Mensagens recentes

Also enable the developer mode as described at http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+Developer+Mode

With developer mode changes made to vm templates/css/js are reflected instantly.

You should also create theme project using liferay SDK and make your changes in _diff folder and then do ant deploy.
Kumar Bonagiri
RE: customizing the theme
26 de Junho de 2012 05:06
Resposta

Kumar Bonagiri

Ranking: Junior Member

Mensagens: 35

Data de entrada: 22 de Abril de 2012

Mensagens recentes

Hey

download the plugin's SDK at
http://www.liferay.com/downloads/liferay-portal/available-releases

go through this doc once.
http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/creating-liferay-them-7