Foren
Liferay 6.1.1 Default theme on portal-ext.properties
Carlos Martins, geändert vor 11 Jahren.
Liferay 6.1.1 Default theme on portal-ext.properties
New Member Beiträge: 2 Beitrittsdatum: 08.08.12 Neueste Beiträge
Hello,
I've developed a theme with the id dev7, now I want to make it default for all pages through the portal-ext.properties, I'm using the following ones:
But nothing seems to work.
If I install the theme through the Control Panel, the theme works correctly.
Any ideas?
Best regards,
I've developed a theme with the id dev7, now I want to make it default for all pages through the portal-ext.properties, I'm using the following ones:
default.user.public.layout.regular.theme.id=dev7
default.user.private.layout.regular.theme.id=dev7
default.regular.theme.id=dev7
default.theme.id=dev7
But nothing seems to work.
If I install the theme through the Control Panel, the theme works correctly.
Any ideas?
Best regards,
Mika Koivisto, geändert vor 11 Jahren.
RE: Liferay 6.1.1 Default theme on portal-ext.properties
Liferay Legend Beiträge: 1519 Beitrittsdatum: 07.08.06 Neueste Beiträge
Unless you modified the portal core to include your theme the theme id should contain also _WAR_mythemecontext. Notice the context doesn't have - so if your theme war is my-theme the ending would be _WAR_mytheme
Carlos Martins, geändert vor 11 Jahren.
RE: Liferay 6.1.1 Default theme on portal-ext.properties
New Member Beiträge: 2 Beitrittsdatum: 08.08.12 Neueste Beiträge
Hi, thanks.
So, you're saying that the right properties are:
Many thanks in advance.
So, you're saying that the right properties are:
default.user.public.layout.regular.theme.id=dev7_WAR_dev7theme
default.user.private.layout.regular.theme.id=dev7_WAR_dev7theme
default.regular.theme.id=dev7_WAR_dev7theme
default.theme.id=dev7_WAR_dev7theme
Many thanks in advance.
Mika Koivisto, geändert vor 11 Jahren.
RE: Liferay 6.1.1 Default theme on portal-ext.properties
Liferay Legend Beiträge: 1519 Beitrittsdatum: 07.08.06 Neueste Beiträge
Yes, those look to be in correct form.
Hitoshi Ozawa, geändert vor 11 Jahren.
RE: Liferay 6.1.1 Default theme on portal-ext.properties
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Also be aware that themes set in portal-ext.properties are only default themes. If you've selected a theme from liferay's GUI, they will take precedence. I don't think there is a simple way to delete settings entered in to the database.
Neetu Mishra, geändert vor 11 Jahren.
RE: Liferay 6.1.1 Default theme on portal-ext.properties
Junior Member Beiträge: 75 Beitrittsdatum: 21.05.12 Neueste Beiträge
Hi Carlos,
If you want to set default theme from the Liferay's Control Panel then you can follow the following steps & you are done.
Go to Control Panel -> Site pages -> Click on Public Pages -> Regular Browser
Select your theme to which you want to make as a default theme.
Click on Save
It will make the selected theme as a default theme for the selected website.
Regards,
Neetu Mishra
If you want to set default theme from the Liferay's Control Panel then you can follow the following steps & you are done.
Go to Control Panel -> Site pages -> Click on Public Pages -> Regular Browser
Select your theme to which you want to make as a default theme.
Click on Save
It will make the selected theme as a default theme for the selected website.
Regards,
Neetu Mishra
Elijah Mangason, geändert vor 11 Jahren.
RE: Liferay 6.1.1 Default theme on portal-ext.properties
Junior Member Beiträge: 65 Beitrittsdatum: 14.05.12 Neueste Beiträge
I developed a theme based on the Liferay 6.1.1. Classic Theme, and all is working well. When I put portlets on the page, they have the default theme, however. How do I get portlets to render with my custom theme. I already went into Control Panel and set the theme site-wide as described above. Any info greatly appreciated!
Neetu Mishra, geändert vor 11 Jahren.
RE: Liferay 6.1.1 Default theme on portal-ext.properties
Junior Member Beiträge: 75 Beitrittsdatum: 21.05.12 Neueste BeiträgeElijah Mangason:
When I put portlets on the page, they have the default theme, however. How do I get portlets to render with my custom theme.
Hi Elijah,
The theme that you have designed is basically for your site or I can say it can cover header, footer & middle section of the page but not the portlet. So if you want to add any styling to all the portlets then you can do this using your custom theme only. Try to override css given in portlet.css file. Like in my project I have added following lines in custom-ext.css file to override the styling given in the classic theme:
.portlet {
border: 1px solid #C0C0C0;
padding: 0px;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
margin: 0 0 5px;
}
.portlet-topper {
background-image: url("../images/GreenCrescent/headerBG.png");
background-position: center bottom;
background-repeat: repeat-x;
border: 0;
border-bottom: 1px solid #C0C0C0;
float: left;
font-size: 17px;
height: 49px;
margin-bottom: 1px;
width: 100%;
box-shadow: none;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
}
.portlet-title {
color: #001C52;
font-size: 17px;
font-weight: normal;
margin: 7px;
}
.portlet-content-container {
background: url("../images/GreenCrescent/portletBG.png") repeat-x scroll
center bottom #F6F5F5;
clear: both;
min-height: 100px;
padding: 5px 10px;
font-size: 11px;
text-align: justify;
}
.portlet-topper-toolbar {
margin: 7px;
}
.portlet-content {
padding: 0;
}
.portlet-column-content {
padding: 0;
margin-top: 4px;
}
Please let me know in case you are still facing any issue.
Regards,
Neetu