Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
lutz Bremen
How to hide the dock and edit controls from users
October 21, 2011 12:17 AM
Answer

lutz Bremen

Rank: Expert

Posts: 291

Join Date: October 20, 2011

Recent Posts

Hey guys,
i want to hide the dock from users. Especially i want to hide the my public and private pages from the user. and i want to hide the opportunity the edit the portlets from the users.
could u help me?

thanks in advance
Manikandan S
RE: How to hide the dock and edit controls from users
October 21, 2011 12:28 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

In your theme add the following code in portal_normal.vm file,

1
2        #if (($permissionChecker.isOmniadmin())||$permissionChecker.isCompanyAdmin($themeDisplay.getCompanyId()))
3        #dockbar()
4        #end
Jelmer Kuperus
RE: How to hide the dock and edit controls from users
October 21, 2011 12:45 AM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

Or you can do this :

http://www.liferay.com/community/wiki/-/wiki/Main/Using+Custom+Permissions+in++Theme

For a bit more flexibility in case you need it
Zeeshan Khan
RE: How to hide the dock and edit controls from users
October 27, 2011 11:38 PM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Hi Mani !!

i have pasted the code that u have given.....but its not working.....what would be the problem.....???

thnx!!
Manikandan S
RE: How to hide the dock and edit controls from users
October 27, 2011 11:45 PM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

What you did? Could you post here?

Try this code,

1
2#if(($is_signed_in)&&(( $permissionChecker.isOmniadmin() || $permissionChecker.isCompanyAdmin() || $permissionChecker.isCommunityAdmin(long groupId) ))
3#dockbar()
4#end
Zeeshan Khan
RE: How to hide the dock and edit controls from users
October 28, 2011 12:00 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Hi Mani !

i simply pasted the code in my jedi theme at this location \liferay-portal-6.0.6\tomcat-6.0.29\webapps\jedi-theme\templates


the code that u have pasted now is also not working in my case emoticon

after pasting this code , it is showing a blank page.

thnx !!
Manikandan S
RE: How to hide the dock and edit controls from users
October 28, 2011 12:16 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Where did you pasted the code could you post your code here?