2 Replies Latest reply on Dec 5, 2005 8:27 PM by sverker

    How to set theme per page (without changing layout)?

    sverker

      I'm trying to find out how to set the theme for a page. In the layout examples there is a comment like this:

      <!-- insert the dynamically determined theme elements here, or use the 'carstore' theme by default -->

      How can I dynamically set theme? Is it a request parameter?

      I would prefer if I can set theme per page e.g. by declaring it in the *-portal.xml file, while keeping the same layout.

        • 1. Re: How to set theme per page (without changing layout)?

          it is possible to set the theme for the page:

          in JBP 2.2 you would do that via page properties, like:

           <page>
           <page-name>Secure Policy Config</page-name>
           <property>
           <name>org.jboss.portal.property.theme</name>
           <value>Nphalanx</value>
           </property>
           .....
          


          Note: the property name is subject to change (i.e. will be changed very soon; before the public beta)


          • 2. Re: How to set theme per page (without changing layout)?
            sverker

            Ok, I suppose it's not possible in 2.0.x then. I had a look at 2.2 the other day but it throw too many exceptions to be usable still, but it looks very promising for the near future.

            Never mind, I've figured out how to accomplish what I need with AJAX.

            Thanks anyway.
            /Sverker