Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Terry Jeske
Custom theme not available
March 6, 2012 9:42 AM
Answer

Terry Jeske

Rank: Junior Member

Posts: 42

Join Date: June 23, 2010

Recent Posts

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
March 6, 2012 10:16 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7250

Join Date: September 1, 2006

Recent Posts

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
March 6, 2012 10:44 AM
Answer

Terry Jeske

Rank: Junior Member

Posts: 42

Join Date: June 23, 2010

Recent Posts

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
March 6, 2012 3:41 PM
Answer

Terry Jeske

Rank: Junior Member

Posts: 42

Join Date: June 23, 2010

Recent Posts

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
March 8, 2012 5:29 AM
Answer

Dave Kliczbor

Rank: Junior Member

Posts: 55

Join Date: July 12, 2011

Recent Posts

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...