-
1. Re: Creating a theme
vineet_tripathi Jul 24, 2009 3:49 PM (in response to kellyc)The obvious reason that i can see here is:
JBoss portal ThemeService will show all the themes as available themes that you have mentioned in your portal-themes.xml.
So, I guess you are having same entries in 2 different portal-themes.xml, placed in 2 different application in your deploy directroy(One could be the JBOSS-portal.sar/portal-core.war and the other is your custom one). Give different names in your portal-themes.xml, for your custom themes. -
2. Re: Creating a theme
kellyc Jul 24, 2009 4:24 PM (in response to kellyc)Hello, thanks for the response!
Inside my custom portal-themes.xml (inside the war), I only have this:<themes> <theme> <name>kelly_theme</name> <link rel="stylesheet" id="main_css" href="/portal_style.css" type="text/css"/> <link rel="shortcut icon" href="/images/favicon.ico"/> </theme> </themes>
So I'm not sure where the double entries are coming from.... =/
Also, only "maple" "industrial" "renewal" and "renaissance" are appearing twice on the list.. "default" is still the same.
The name of my custom theme isn't appearing at all.. -
3. Re: Creating a theme
kellyc Jul 24, 2009 4:54 PM (in response to kellyc)Also, I had previously tried creating a directory inside
"jboss-portal.sar/portal-core.war/themes/"
that contained images folder and a stylesheet
and adding defining the theme inside "jboss-portal.sar/portal-core.war/WEB-INF/portal-themes.xml"
but this appeared to create no results either -
4. Re: Creating a theme
peterj Jul 24, 2009 4:54 PM (in response to kellyc)I'll assume you already tried restarting the app server. So try this: stop the app server, move your theme war file to the server/xxx/deploy/jboss-portal.sar directory. Then start the app server.
If that doesn't work, go into the server/xxx/deploy/jboss-portal.sar/conf/data/default-object.xml file and change the theme.id property value to your theme and restart the app server. -
5. Re: Creating a theme
peterj Jul 24, 2009 4:57 PM (in response to kellyc)Looks like you were typing the same time I was. I'm really surprised that editing the global portal-themes.xml did not do anything, especially since that is where the themes that ship with the portal are declared. (Oh, you are restarting the app server after each of these changes, right?)
-
6. Re: Creating a theme
kellyc Jul 24, 2009 5:13 PM (in response to kellyc)IT WORKS! :)
Changed around a few things, restarted and now the theme is showing up :) Thank you!