Foros de discusión

Sign-Out link

thumbnail
Amarnadha Reddy, modificado hace 14 años.

Sign-Out link

Junior Member Mensajes: 27 Fecha de incorporación: 4/08/09 Mensajes recientes
Hi ,

whether is it possible to keep the sign-out link before " AddPage" ? any one can give a suggestion for this ? here what are the files need to modified ?

Thanks
thumbnail
Ahamed Sakir, modificado hace 14 años.

RE: Sign-Out link

Regular Member Mensajes: 129 Fecha de incorporación: 22/08/08 Mensajes recientes
hi,

1. Remove the below code from dock.vm
#if ($show_sign_out)
<li class="sign-out">
<a href="$sign_out_url">$sign_out_text</a>
</li>
#end

2. Add the below code in portal_normal.vm inside <div id="banner">....</div>
<div class="custom_signout">
#if ($show_sign_out)
<a href="$sign_out_url">$sign_out_text</a>
#end
<div>

3. Write in custom. css for custom_signout class

Regards
Sakir
thumbnail
Amarnadha Reddy, modificado hace 14 años.

RE: Sign-Out link

Junior Member Mensajes: 27 Fecha de incorporación: 4/08/09 Mensajes recientes
Ahamed Sakir:
hi,

1. Remove the below code from dock.vm
#if ($show_sign_out)
<li class="sign-out">
<a href="$sign_out_url">$sign_out_text</a>
</li>
#end

2. Add the below code in portal_normal.vm inside <div id="banner">....</div>
<div class="custom_signout">
#if ($show_sign_out)
<a href="$sign_out_url">$sign_out_text</a>
#end
<div>

3. Write in custom. css for custom_signout class

Regards
Sakir


Hi Ahmed Sakir ,
Thanks for giving reply for this . I am also added the following code in ' portal_normal.vm '

<div class="custom_signout">
#if ($show_sign_out)
<a href="$sign_out_url"><input type="submit" value="$sign_out_text"/></a>
#end
</div>

and added the following code in 'customm.css'
#custom_signout {
background-image: url(../images/dock/sign_out.png);
float: right;
background: #1E2529;
display: block;
position: absolute;
}

but here am facing some problem , that sign-out link wont come properly . plz refer following attachment .


Thanks

Archivos adjuntos:

thumbnail
Olaf Kock, modificado hace 14 años.

RE: Sign-Out link

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
Amarnadha Reddy:
Thanks for giving reply for this . I am also added the following code in ' portal_normal.vm '

<div class="custom_signout">
#if ($show_sign_out)
<a href="$sign_out_url"><input type="submit" value="$sign_out_text"/></a>
#end
</div>

and added the following code in 'custom.css'
#custom_signout {
background-image: url(../images/dock/sign_out.png);
float: right;
background: #1E2529;
display: block;
position: absolute;
}


There's two possibilities here that I see.
  • The first is marked bold in the quote above: If you have class="custom_signout" you shouldn't be using the css-selector for ids
  • If that was just a typo here, css-minifying could be your problem if you just changed this within a running implementation of Liferay instead of in your own theme prior to building and deploying it


Let me know which it was if any.