-
1. Re: Theme and layout settings for Configure Dashboard
vijay2p Dec 1, 2009 2:09 AM (in response to ric.sa.moore)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
ric.sa.moore Dec 1, 2009 5:15 AM (in response to ric.sa.moore)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
ric.sa.moore Dec 1, 2009 5:17 AM (in response to ric.sa.moore)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 Dec 1, 2009 8:31 AM (in response to ric.sa.moore)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
ric.sa.moore Dec 1, 2009 8:41 AM (in response to ric.sa.moore)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 Dec 2, 2009 9:40 AM (in response to ric.sa.moore)\\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
ric.sa.moore Dec 4, 2009 6:29 AM (in response to ric.sa.moore)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
vineet_tripathi Jan 26, 2010 7:24 AM (in response to ric.sa.moore)Yes, this is hardcoded in RenderPortletInstaneCommand.java