掲示板

top menu

thumbnail
12年前 に Gabriel Leon Leyva によって更新されました。

top menu

Regular Member 投稿: 243 参加年月日: 09/06/20 最新の投稿
is there a way to hide top menu from logged users? thanks

添付ファイル:

thumbnail
12年前 に Jignesh Vachhani によって更新されました。

RE: top menu

Liferay Master 投稿: 803 参加年月日: 08/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
thumbnail
12年前 に Gabriel Leon Leyva によって更新されました。

RE: top menu

Regular Member 投稿: 243 参加年月日: 09/06/20 最新の投稿
thanks, I added #if ($permissionChecker.isOmniadmin()) to portal_normal.vm so only admin users can see top menu.
thumbnail
12年前 に Gabriel Leon Leyva によって更新されました。

RE: top menu

Regular Member 投稿: 243 参加年月日: 09/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
thumbnail
12年前 に Jignesh Vachhani によって更新されました。

RE: top menu

Liferay Master 投稿: 803 参加年月日: 08/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.

添付ファイル:

thumbnail
12年前 に Sagar A Vyas によって更新されました。

RE: top menu

Liferay Master 投稿: 679 参加年月日: 09/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
thumbnail
12年前 に Gabriel Leon Leyva によって更新されました。

RE: top menu

Regular Member 投稿: 243 参加年月日: 09/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