Fórumok

Custom theme not available

thumbnail
Terry Jeske, módosítva 12 év-val korábban

Custom theme not available

Junior Member Bejegyzések: 42 Csatlakozás dátuma: 2010.06.23. Legújabb bejegyzések
I created a theme using the Liferay IDE based on the Classic theme. I deploy the theme to my server and it successfully deploys:



17:30:46,692 INFO  [AutoDeployDir:167] Processing BlueTest-theme-6.0.6.1.war
17:30:46,695 INFO  [ThemeAutoDeployListener:44] Copying themes for /home/myhome/liferay/deploy/BlueTest-theme-6.0.6.1.war
  Expanding: /home/myhome/liferay/deploy/BlueTest-theme-6.0.6.1.war into /home/myhome/liferay/tomcat-6.0.29/temp/20120306173046698
  Copying 1 file to /home/myhome/liferay/tomcat-6.0.29/temp/20120306173046698/WEB-INF
  Copying 1 file to /home/myhome/liferay/tomcat-6.0.29/temp/20120306173046698/WEB-INF/classes
  Copying 1 file to /home/mhome/liferay/tomcat-6.0.29/temp/20120306173046698/WEB-INF/classes
  Copying 1 file to /home/myhome/liferay/tomcat-6.0.29/temp/20120306173046698/WEB-INF
  Copying 694 files to /home/myhome/liferay/tomcat-6.0.29/webapps/BlueTest-theme
  Copying 1 file to /home/myhome/liferay/tomcat-6.0.29/webapps/BlueTest-theme
  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
<look-and-feel>
	<compatibility>
		<version>6.0.6+</version>
	</compatibility>
	<theme id="BlueTest" name="BlueTest" />
</look-and-feel>


Any suggestions??
thumbnail
David H Nebinger, módosítva 12 év-val korábban

RE: Custom theme not available

Liferay Legend Bejegyzések: 14916 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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.
thumbnail
Terry Jeske, módosítva 12 év-val korábban

RE: Custom theme not available

Junior Member Bejegyzések: 42 Csatlakozás dátuma: 2010.06.23. Legújabb bejegyzések
Thx for the reply, I accidentally missed the deploy part of the console dump. It appears to have deployed properly, but is not available.

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

Mar 6, 2012 5:30:55 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory BlueTest-theme
17:30:55,433 INFO  [ThemeHotDeployListener:78] Registering themes for BlueTest-theme
17:30:56,830 INFO  [ThemeHotDeployListener:89] 1 theme for BlueTest-theme is available for use
17:31:09,905 INFO  [PluginPackageUtil:1230] Checking for available updates
thumbnail
Terry Jeske, módosítva 12 év-val korábban

RE: Custom theme not available

Junior Member Bejegyzések: 42 Csatlakozás dátuma: 2010.06.23. Legújabb bejegyzések
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.
thumbnail
Dave Kliczbor, módosítva 12 év-val korábban

RE: Custom theme not available

Junior Member Bejegyzések: 77 Csatlakozás dátuma: 2011.07.12. Legújabb bejegyzések
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...