フォーラム

ホーム » Liferay Social Office

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Gabriel Leon Leyva
top menu
2011/11/12 12:58
答え

Gabriel Leon Leyva

ランク: Regular Member

投稿: 240

参加年月日: 2009/06/20

最近の投稿

is there a way to hide top menu from logged users? thanks
画像の固定

添付ファイル: top.png (23.2k)
Jignesh Vachhani
RE: top menu
2011/11/15 2:18
答え

Jignesh Vachhani

ランク: Liferay Master

投稿: 780

参加年月日: 2008/03/10

最近の投稿

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
2011/11/14 7:55
答え

Gabriel Leon Leyva

ランク: Regular Member

投稿: 240

参加年月日: 2009/06/20

最近の投稿

thanks, I added #if ($permissionChecker.isOmniadmin()) to portal_normal.vm so only admin users can see top menu.
Gabriel Leon Leyva
RE: top menu
2011/11/23 9:23
答え

Gabriel Leon Leyva

ランク: Regular Member

投稿: 240

参加年月日: 2009/06/20

最近の投稿

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
2011/12/15 23:24
答え

Jignesh Vachhani

ランク: Liferay Master

投稿: 780

参加年月日: 2008/03/10

最近の投稿

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.
添付ファイル: shared.vm (2.6k)
Sagar A Vyas
RE: top menu
2011/11/24 0:30
答え

Sagar A Vyas

ランク: Liferay Master

投稿: 655

参加年月日: 2009/04/17

最近の投稿

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
2011/11/25 8:12
答え

Gabriel Leon Leyva

ランク: Regular Member

投稿: 240

参加年月日: 2009/06/20

最近の投稿

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

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