Fóruns

Início » Liferay Social Office

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Gabriel Leon Leyva
top menu
12 de Novembro de 2011 12:58
Resposta

Gabriel Leon Leyva

Ranking: Regular Member

Mensagens: 241

Data de entrada: 20 de Junho de 2009

Mensagens recentes

is there a way to hide top menu from logged users? thanks
Anexo

Anexos: top.png (23,2k)
Jignesh Vachhani
RE: top menu
15 de Novembro de 2011 02:18
Resposta

Jignesh Vachhani

Ranking: Liferay Master

Mensagens: 780

Data de entrada: 10 de Março de 2008

Mensagens recentes

you can do this with theme code chnages :

you need to update below code in portal-normal.vml file of theme

#if ($is_signed_in)
#dockbar()
#end

Here this code shows that docbar will be visible once user is logged in if you want to hide after login then you can reverse the if condition.


Regards,
Jignesh
liferaycms blog
Gabriel Leon Leyva
RE: top menu
14 de Novembro de 2011 07:55
Resposta

Gabriel Leon Leyva

Ranking: Regular Member

Mensagens: 241

Data de entrada: 20 de Junho de 2009

Mensagens recentes

thanks, I added #if ($permissionChecker.isOmniadmin()) to portal_normal.vm so only admin users can see top menu.
Gabriel Leon Leyva
RE: top menu
23 de Novembro de 2011 09:23
Resposta

Gabriel Leon Leyva

Ranking: Regular Member

Mensagens: 241

Data de entrada: 20 de Junho de 2009

Mensagens recentes

I added
#if ($permissionChecker.isOmniadmin())
#dockbar()
#end

to portal_normal.vm on the theme templates so only admins could see dockbar, but how do I make that also organization users or community users could see also de dockbar??


Thanks in advance
Jignesh Vachhani
RE: top menu
15 de Dezembro de 2011 23:24
Resposta

Jignesh Vachhani

Ranking: Liferay Master

Mensagens: 780

Data de entrada: 10 de Março de 2008

Mensagens recentes

you may have to check the roles for logged-in user and need to compare with specific org or community member or admin role in the condition.
Anexos: shared.vm (2,6k)
Sagar A Vyas
RE: top menu
24 de Novembro de 2011 00:30
Resposta

Sagar A Vyas

Ranking: Liferay Master

Mensagens: 655

Data de entrada: 17 de Abril de 2009

Mensagens recentes

Gabriel Leon Leyva:
I added
#if ($permissionChecker.isOmniadmin())
#dockbar()
#end

to portal_normal.vm on the theme templates so only admins could see dockbar, but how do I make that also organization users or community users could see also de dockbar??


Thanks in advance


Hi Gabriel ,

In your case i guess instead of checking who can see the doc bar , check for reverse condition who can not see docbar.

Like if Particular role can not see it then put condition accordingly emoticon

Thanks,
Sagar Vyas
Gabriel Leon Leyva
RE: top menu
25 de Novembro de 2011 08:12
Resposta

Gabriel Leon Leyva

Ranking: Regular Member

Mensagens: 241

Data de entrada: 20 de Junho de 2009

Mensagens recentes

I've done this by the user role, only employees can see dockbar. Thanks.

#foreach ($role in $roles)
#if($role.getName()=="Employee")
#dockbar()
#end