Forums de discussion

Change the Login Background

Sadi Mort, modifié il y a 13 années.

Change the Login Background

New Member Publications: 16 Date d'inscription: 11/03/11 Publications récentes
Dear Team,

I am looking for a way to put a custom background on the login page only.

I can change the overall background in custom.css, but I wanted to change just the background for the login page.

Many Thanks,

S
thumbnail
Hitoshi Ozawa, modifié il y a 13 années.

RE: Change the Login Background

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
Do you mean "Sign in" portlet?
Can't you just set the "Look and Feel" on the "Sign in" portlet by selecting the wrench on the top right hand side?
thumbnail
Olaf Kock, modifié il y a 13 années.

RE: Change the Login Background

Liferay Legend Publications: 6400 Date d'inscription: 23/09/08 Publications récentes
and even if it's not just the portlet: The css you put in there can target the whole page. Just do

body { background: blue; } 

in there
Sadi Mort, modifié il y a 13 années.

RE: Change the Login Background

New Member Publications: 16 Date d'inscription: 11/03/11 Publications récentes
Olaf,

That is what I have currently, this however applies the background to all pages. I want to target the login page only.

Many Thanks,

S
thumbnail
Olaf Kock, modifié il y a 13 années.

RE: Change the Login Background

Liferay Legend Publications: 6400 Date d'inscription: 23/09/08 Publications récentes
Sorry, I found this post through the "Recent Posts" link and didn't see that this is in the Social Office Category.

In a quick test I couldn't find a simple CSS-based solution like the one that I mentioned above, as the login page is not available when being logged in (it immediately redirects).

Social Office is not meant to be changed and as far as I know customizations are not supported or encouraged. However, there might be a possibility, e.g. through hooking the sign-in portlet, but these would be way outside what SocialOffice has been created for. It's really meant to be a shrinkwrap solution. The next version is expected to be more flexible and an add on to the otherwise fully configurable Liferay Portal.
Sadi Mort, modifié il y a 13 années.

RE: Change the Login Background

New Member Publications: 16 Date d'inscription: 11/03/11 Publications récentes
Hotishi,

In Social Office there is wrench? I also want this applied for all users.

Many Thanks,

S.
thumbnail
Hitoshi Ozawa, modifié il y a 13 années.

RE: Change the Login Background

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
Sorry Sadi,

I haven't looked at which software you were using. As Olaf replied, Social Office don't allow too much customization.
thumbnail
Javier Solana, modifié il y a 7 années.

RE: Change the Login Background

Junior Member Publications: 59 Date d'inscription: 26/06/14 Publications récentes
Sadi Mort:
Dear Team,

I am looking for a way to put a custom background on the login page only.

I can change the overall background in custom.css, but I wanted to change just the background for the login page.

Many Thanks,

S



Maybe it is late for replying this, but I found a solution that may help others who get to this discussion.

I managed to have a different background for the login page using the .sign-in class:

body{
background-color: white;
color: black;
}

body.signed-in{
background-color: #4a4a4a;
color: white;
}