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
Terry Jeske
Custom theme not available
6 de Março de 2012 09:42
Resposta

Terry Jeske

Ranking: Junior Member

Mensagens: 42

Data de entrada: 23 de Junho de 2010

Mensagens recentes

I created a theme using the Liferay IDE based on the Classic theme. I deploy the theme to my server and it successfully deploys:

 1
 2
 317:30:46,692 INFO  [AutoDeployDir:167] Processing BlueTest-theme-6.0.6.1.war
 417:30:46,695 INFO  [ThemeAutoDeployListener:44] Copying themes for /home/myhome/liferay/deploy/BlueTest-theme-6.0.6.1.war
 5  Expanding: /home/myhome/liferay/deploy/BlueTest-theme-6.0.6.1.war into /home/myhome/liferay/tomcat-6.0.29/temp/20120306173046698
 6  Copying 1 file to /home/myhome/liferay/tomcat-6.0.29/temp/20120306173046698/WEB-INF
 7  Copying 1 file to /home/myhome/liferay/tomcat-6.0.29/temp/20120306173046698/WEB-INF/classes
 8  Copying 1 file to /home/mhome/liferay/tomcat-6.0.29/temp/20120306173046698/WEB-INF/classes
 9  Copying 1 file to /home/myhome/liferay/tomcat-6.0.29/temp/20120306173046698/WEB-INF
10  Copying 694 files to /home/myhome/liferay/tomcat-6.0.29/webapps/BlueTest-theme
11  Copying 1 file to /home/myhome/liferay/tomcat-6.0.29/webapps/BlueTest-theme
12  Deleting directory /home/myhome/liferay/tomcat-6.0.29/temp/20120306173046698


When I go to manage the page, the Current theme shows as Classic, but there are no Available themes listed. If I choose "Install More" my theme shows up as an installed theme.

I followed the following instructions from a different post, and my theme is selectable for the default theme, but making it the default has no effect.
If you are using L6, you can set the default theme in control panel -> setting -> display settings ->
There you can set Default Regular Theme , Default Mobile Theme and Default Control Panel Theme.


My look and feel is as follows, and I am using LF 6.0.6
1<look-and-feel>
2    <compatibility>
3        <version>6.0.6+</version>
4    </compatibility>
5    <theme id="BlueTest" name="BlueTest" />
6</look-and-feel>


Any suggestions??
David H Nebinger
RE: Custom theme not available
6 de Março de 2012 10:16
Resposta

David H Nebinger

Ranking: Liferay Legend

Mensagens: 4496

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

In the console you should have seen something along the lines of "BlueTest is available for use". If that's not there, that would explain it's being absent as a theme.
Terry Jeske
RE: Custom theme not available
6 de Março de 2012 10:44
Resposta

Terry Jeske

Ranking: Junior Member

Mensagens: 42

Data de entrada: 23 de Junho de 2010

Mensagens recentes

Thx for the reply, I accidentally missed the deploy part of the console dump. It appears to have deployed properly, but is not available.

117:30:48,416 INFO  [ThemeAutoDeployListener:50] Themes for /home/mhome/liferay/deploy/BlueTest-theme-6.0.6.1.war copied successfully. Deployment will start in a few seconds.
2
3Mar 6, 2012 5:30:55 PM org.apache.catalina.startup.HostConfig deployDirectory
4INFO: Deploying web application directory BlueTest-theme
517:30:55,433 INFO  [ThemeHotDeployListener:78] Registering themes for BlueTest-theme
617:30:56,830 INFO  [ThemeHotDeployListener:89] 1 theme for BlueTest-theme is available for use
717:31:09,905 INFO  [PluginPackageUtil:1230] Checking for available updates
Terry Jeske
RE: Custom theme not available
6 de Março de 2012 15:41
Resposta

Terry Jeske

Ranking: Junior Member

Mensagens: 42

Data de entrada: 23 de Junho de 2010

Mensagens recentes

So to see if loading any theme worked, I installed one from the repository. Once I did that BOTH the newly installed theme, and my custom theme showed as available. Seems like a bug, but at least there is a work around.
Dave Kliczbor
RE: Custom theme not available
8 de Março de 2012 05:29
Resposta

Dave Kliczbor

Ranking: Junior Member

Mensagens: 55

Data de entrada: 12 de Julho de 2011

Mensagens recentes

The "default theme" only applies to new pages/sites. We had to register our custom theme as default in portal-ext.properties before starting tomcat for the first time...