8 Replies Latest reply on Jan 26, 2010 7:24 AM by vineet_tripathi

    Theme and layout settings for Configure Dashboard

      I'm running JBoss Portal 2.7.2 on JBoss 4.2.3, and have written my own theme and layout for my portal.

      I want to apply this theme and layout to the Configure Dashboard screen, so that everything has my own look and feel. However, after much digging, it appears that the theme and layout for this page are set to "renewal" and "generic" in RenderPortletInstanceCommand.java. I can't see any other way to configure this.

      Is there a way to change the layout and theme of the configure dashboard page? Am I missing something?

      Thanks in advance.

        • 1. Re: Theme and layout settings for Configure Dashboard
          vijay2p

          Please dig into \\jboss-portal-2.7.2\server\default\deploy\jboss-portal.sar\conf\data\default-object.xml file then you will be able to achieve the desired result.

          Cheers,
          Vijay

          • 2. Re: Theme and layout settings for Configure Dashboard

            Hi Vijay,
            thanks for the reply. I had already had a look in this file and couldn't see how to get it to do what I wanted.
            I changed all the values of the "layout.id" property to my own layout.
            I then dropped all the tables in my database and restarted my server.

            This had the effect of altering the layout on the "admin" portal, but didn't affect the page that I was talking about, the "configure dashboard" page.

            Am I doing something wrong, or missing something?

            Thanks,
            Richard

            • 3. Re: Theme and layout settings for Configure Dashboard

              I suppose the other thing to mention is that my theme and layout are deployed in a separate war file on the server. I don't know if this makes any difference.

              • 4. Re: Theme and layout settings for Configure Dashboard
                vegastyl

                If you want to change the theme for the dashboard page, change this section to use your custom theme and layout:

                 <deployment>
                 <if-exists>keep</if-exists>
                 <context>
                 <context-name>dashboard</context-name>
                 <properties>
                
                 <!--
                 | Set the layout for the default portal, see also portal-layouts.xml.
                 -->
                 <property>
                 <name>layout.id</name>
                 <value>generic</value>
                 </property>
                
                 <!--
                 | Set the theme for the default portal, see also portal-themes.xml.
                 -->
                 <property>
                 <name>theme.id</name>
                 <value>renewal</value>
                 </property>
                 ...
                

                Hope this helps.

                • 5. Re: Theme and layout settings for Configure Dashboard

                  Hi Brandon,

                  thanks for that. But it's not actually the dashboard page that I want to change, it's the "Configure Dashboard" page that you can navigate to from a link at the top of the page when you are on the dashboard.

                  All of the pages available from the portal are using my custom theme and layout (set from the default-object.xml file), but the "Configure Dashboard" page doesn't seem to use these settings.

                  Thanks,
                  Richard

                  • 6. Re: Theme and layout settings for Configure Dashboard
                    vijay2p

                    \\JBP_EPP\jboss-epp-4.3\jboss-as\server\production\deploy\jboss-portal-ha.sar\portal-core.war\layouts\generic\maximized.jsp

                    update following entry in above given file:

                    <p:theme themeName="%Provide your custom Theme Here%"/>


                    Hope this will resolve your problem

                    Cheers,
                    Vijay Chaudhary


                    • 7. Re: Theme and layout settings for Configure Dashboard

                      Thanks Vijay.

                      That does get the page using my theme.

                      From your answer then, it looks like the layout that this page uses is hard coded to the generic maximised one. There's no way that you know to control this using the deployment descriptors?

                      This also forces me to change that JSP to mimic the layout that I have created, rather than just being able to fully deploy my layout from a separate WAR file.

                      Is that your understanding too?

                      Cheers,
                      Richard

                      • 8. Re: Theme and layout settings for Configure Dashboard
                        Yes, this is hardcoded in RenderPortletInstaneCommand.java