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.
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?
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.
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.
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.
update following entry in above given file:
<p:theme themeName="%Provide your custom Theme Here%"/>
Hope this will resolve your problem
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?
Yes, this is hardcoded in RenderPortletInstaneCommand.java