Fórum

To edit welcome message on liferay portal

Ketkee A, modificado 12 Anos atrás.

To edit welcome message on liferay portal

Junior Member Postagens: 78 Data de Entrada: 10/03/11 Postagens Recentes
Hi,

Can we edit the welcome message on Liferay Portal?

For e.g. when a user logs in, on the rightmost top a welcome message is displayed as "Welcome User!"

can this be changed?

Please let me know.

--Ketkee
thumbnail
Mani kandan, modificado 12 Anos atrás.

RE: To edit welcome message on liferay portal

Expert Postagens: 492 Data de Entrada: 15/09/10 Postagens Recentes
Yes this can be done.

Login as Administrator user --> go to control panel -- > click Display Settings from My Acccont --> then edit in Greeting text

And for dynamic change try the following,

change the ../your-theme/templates/init_custom.vm
(of course, if you want for all themes change on dock or init file)

and if you want to improve that, to more than one language, just needs to put an if getting the language and customizing.

#if ($is_signed_in)
#set ($user_greeting = "Welcome "+$user_first_name+" "+$user_last_name)
#else
#set ($user_greeting = "Welcome")
#end

this way it overrides the user greetings.

if you don't want that, just put this:

#if (!$is_signed_in)
#set ($user_greeting = "Welcome")
#end