-
1. Re: separating layout from theme?
theute Mar 6, 2007 9:30 AM (in response to fredf)Theme and layout are disctinct.
You *can* do both in the same file for simplicity, but the default is to have a layout *and* a theme.
Look at the renaissance theme, it is just a CSS, it goes with the default layout which is a 2 column layout.
So you can already have a single theme and several layout to use on different pages. -
2. Re: separating layout from theme?
fredf Mar 6, 2007 9:37 AM (in response to fredf)Ok. Thats weird, because our "shipped" portal had just one css file with both theme and layout defined in it. What do I name the file containing the layout and where do I put it? Also how do I set a page to utilize this layout css file?
thanks. -
3. Re: separating layout from theme?
theute Mar 6, 2007 10:03 AM (in response to fredf)
See:
http://docs.jboss.com/jbportal/v2.6/user-guide/en/html/dynamicity.html#pagethemelayout
To choose your layout and theme using the management portlet (note that you can do it in the XML descriptors as well)
Here is the doc for packaging theme and layout.
http://docs.jboss.com/jbportal/v2.6/reference-guide/en/html/themeandlayouts.html
If you look at the sources of the portal you got you will find the layout defined here:
core/src/bin/portal-core-war/layouts/generic/*.jsp
and the default theme here:
core/src/bin/portal-core-war/themes/renaissance/* -
4. Re: separating layout from theme?
fredf Mar 6, 2007 10:10 AM (in response to fredf)thanks a bunch!