Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
A R
Hide links in the control panel
November 27, 2012 1:00 PM
Answer

A R

Rank: New Member

Posts: 1

Join Date: November 2, 2012

Recent Posts

Hello,

Is there anyway of finding out what links can be hidden in the control panel portlets?

E.g. to hide links in the My Account portlet these are added to portal-ext.properties.

1users.form.my.account.main=details,password
2users.form.my.account.identification=addresses,phone-numbers,additional-email-addresses,websites,instant-messenger,social-network
3users.form.my.account.miscellaneous=announcements,display-settings


I want to be able to do this for a few other portlets such as Site Pages.

Br,
EW
Hitoshi Ozawa
RE: Hide links in the control panel
November 27, 2012 2:38 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

Instead of posting to the Liferay IDE forum, you may get more replies if you post your question to the Portal -> Using Liferay -> General forum.

http://www.liferay.com/community/forums/-/message_boards/category/4470261
Juhi Kumari
RE: Hide links in the control panel
November 27, 2012 8:26 PM
Answer

Juhi Kumari

Rank: Expert

Posts: 347

Join Date: December 12, 2011

Recent Posts

Hi,

Uncomment these lines in liferay-portlet.xml if you are using LR 6.0. and make include false for the portlet you don't want to show in control panel.
1<portlet>
2        <portlet-name>137</portlet-name>
3        <struts-path>admin_server</struts-path>
4        <include>true</include>
5    </portlet>


If you are using LR 6.1 then remove these lines from liferay-portlet.xml for that particular portlet.
1<control-panel-entry-category>my</control-panel-entry-category>
2        <control-panel-entry-weight>1.0</control-panel-entry-weight>
3        <control-panel-entry-class>com.liferay.portlet.myaccount.MyAccountControlPanelEntry</control-panel-entry-class>



Regards
Juhi