-
1. Re: Make available css to all portlets
trong.tran Dec 15, 2010 2:18 AM (in response to thomman)what problem do you have finally ? it does not work ?
btw did you look at the sample skin http://anonsvn.jboss.org/repos/gatein/portal/tags/3.1.0-GA/examples/skins/simpleskin/ to compare it with yours ?
-
2. Re: Make available css to all portlets
thomman Dec 15, 2010 2:28 AM (in response to trong.tran)It is not working. I have gone thru the url which u gave. I have configured gatein-resources.xml & web.xml. Is there anything else which I need to do ?
-
3. Re: Make available css to all portlets
trong.tran Dec 15, 2010 3:04 AM (in response to thomman)No, I just have some notes :
- You are configure a new skin called "myPortalStyle", it means you have to change current skin to myPortalStyle to get your effort
- Make sure you put gatein-resources.xml in in the same directory WEB-INF with web.xml
- Let see if there is any difference between your web.xml and the one in the simple skin
-
4. Re: Make available css to all portlets
thomman Dec 15, 2010 3:24 AM (in response to trong.tran)Hi, thanks for your reply .
I have compared my web.xml with the one in simple skin. There is no difference. My gatein-resources.xml & web.xml are located in WEB-INF directory. Is there anything additional which I need to do to change the default skin ??????? I have tried placing my css in 01eXoResources.war & specifying my css import in Stylesheet.css located in the same directory. Then it worked for me. But thru my application I am unable to change the default skin.
-
5. Re: Make available css to all portlets
trong.tran Dec 15, 2010 4:58 AM (in response to thomman)If you want to add a css to the default skin, you need to specify the skin-name to "Default" and a different skin-module ( it's "CoreSkin" by default if omitted ) as following :
<portal-skin> <skin-name>Default</skin-name> <skin-module>myPortalStyle</skin-module> <css-path>/themes/Stylesheet.css</css-path> </portal-skin>
let me know if it works for you
-
6. Re: Make available css to all portlets
thomman Dec 15, 2010 6:07 AM (in response to trong.tran)hi Trong, thanks a lot for ur reply. It worked.