Foros de discusión

Custom theme only displays correctly when in Developers mode.

Sean Truman, modificado hace 14 años.

Custom theme only displays correctly when in Developers mode.

New Member Mensaje: 1 Fecha de incorporación: 10/08/09 Mensajes recientes
All,

We used the documentation and created a theme using the Plugin SDK for Liferay 5.2.3. The theme works great when I deploy it to a Liferay portal that has Developers mode turned on. When I deploy it to a Liferay portal without the Developers mode Liferay tries to render the theme as if it was a bare page (No styling). I have notice that on the portal without the Developers mode turn on that uses barebone.jsp and none of the JQuery scrips are loaded. Any help is greatly appreciated.

Sean
Bob Lyman, modificado hace 14 años.

RE: Custom theme only displays correctly when in Developers mode.

New Member Mensajes: 7 Fecha de incorporación: 31/08/09 Mensajes recientes
I'm running into the same problem only I'm not sure if I'm running in developer mode or not.

Alas I have great enthusiasm for this product, but I can't seem to get a theme to work even a basic one with minimal changes.

See the attached file for the results I'm getting.

-bob

Archivos adjuntos:

vcvijayan MCA, modificado hace 14 años.

RE: Custom theme only displays correctly when in Developers mode.

Bob Lyman, modificado hace 14 años.

RE: Custom theme only displays correctly when in Developers mode.

New Member Mensajes: 7 Fecha de incorporación: 31/08/09 Mensajes recientes
I did as you described and it worked!

Thanks for your help.

Now can someone please change the wiki to reflect this? :-)
Bob Lyman, modificado hace 14 años.

RE: Custom theme only displays correctly when in Developers mode.

New Member Mensajes: 7 Fecha de incorporación: 31/08/09 Mensajes recientes
Well I thought it worked.

Turns out it didn't pick up the theme until I copied three extra files from the WEB-INF folder. Then it found the theme, but when I clicked on it I get the same result.

Here is what I've done:

1) Installed the plugin sdk

2) ran create.bat moondance "Moondance Pottery"

3) Copied the files from tomcat/webapps/ROOT/html/themes/classic (css, images, javascript, templates) to my _diffs folder

4) Copied liferay-look-and-feel.xml, liferay-plugin-package.xml and web.xml to my WEB-INF folder. It seems without these Liferay will not see my theme once deployed. I changed specific properties within each file pertaining to my installation as needed.

5) Made a change to custom.css to change the background color to #7a89a6 so I'd know I had the right theme.

6) ran ant

7) Browsed to look and feel and I see the theme available, but when I select it I get the above result.

I tried attaching a file to this with my source code but unfortunately it won't go.

Please somebody tell me what I'm doing wrong. I have spent 3 days trying to figure this out and alas I am about to toss this product and go with my backup plan which I'd rather not do.

I can't believe this is that hard and everyone makes it sound so easy, but I never get the same result.

-bob
Bob Lyman, modificado hace 14 años.

RE: Custom theme only displays correctly when in Developers mode.

New Member Mensajes: 7 Fecha de incorporación: 31/08/09 Mensajes recientes
Ok,

Finally figured it out.

The ant build file build-common-plugin.xml includes the version number as part of the war file (Lines 57 and 60). This means that it deploys with the version number, but if you don't include the version number in the actual theme id it will not load it properly.

By removing the version number ( -${lp.version}.${plugin.version} ) from those lines (actually the jar file line probably doesn't matter but for consistency I removed it) it worked.

Thanks for any advice.

-bob
thumbnail
Wilson Man, modificado hace 14 años.

RE: Custom theme only displays correctly when in Developers mode.

Liferay Master Mensajes: 581 Fecha de incorporación: 21/06/06 Mensajes recientes
Bob Lyman:
I did as you described and it worked!

Thanks for your help.

Now can someone please change the wiki to reflect this? :-)


hey Bob, the Liferay wiki is meant to be community driven. So feel free to add your new found answers to the wiki if you have time. thanks, and glad to have you on our Message Boards!