Foren
How to remove LR OOTB portlets
Balaji Murugesan, geändert vor 12 Jahren.
How to remove LR OOTB portlets
Junior Member Beiträge: 74 Beitrittsdatum: 10.11.10 Neueste Beiträge
Hi,
I do not want the user to see the LR's ootb portlets... how do i disable all of them instead of going to control panel and making them inactive.
Since there are around 120 portlets so making each portlets individually inactive is not wise...
I do not want the user to see the LR's ootb portlets... how do i disable all of them instead of going to control panel and making them inactive.
Since there are around 120 portlets so making each portlets individually inactive is not wise...
Anil Sunkari, geändert vor 12 Jahren.
RE: How to remove LR OOTB portlets
Expert Beiträge: 427 Beitrittsdatum: 12.08.09 Neueste Beiträge
You can override the liferay-display.xml using hooks.Correct me if my understanding is wrong.
Regards,
Anil Sunkari
Regards,
Anil Sunkari
Hajri Mohamed, geändert vor 12 Jahren.
RE: How to remove LR OOTB portlets
Junior Member Beiträge: 71 Beitrittsdatum: 02.03.11 Neueste Beiträge
what do you mean with the term "user", if you want that all that portlet disappear from add menu, i confirm the hook method, else, you will have to play with permessions related to user roles, for exemple, you can configure that portlets to be available only for some users based on their roles and not for others.
regards
regards
jelmer kuperus, geändert vor 12 Jahren.
RE: How to remove LR OOTB portlets
Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste Beiträge
There's a bunch of ways
You can add a liferay-portlet-ext.xml file and start Adding entries like this :
Or you can move portlets to the hidden category in liferay-display.xml However this only means they wont show up in the add menu
And finally you can create a startup action in a hook that disables portlets like this class does in the initRuntime method
http://svn.liferay.com/repos/public/plugins/branches/6.0.6/hooks/so-hook/docroot/WEB-INF/src/com/liferay/so/util/InstanceUtil.java
You can add a liferay-portlet-ext.xml file and start Adding entries like this :
<!--?xml version="1.0"?-->
<liferay-portlet-app>
<portlet>
<portlet-name>16</portlet-name>
<struts-path>currency_converter</struts-path>
<include>false</include>
</portlet>
</liferay-portlet-app>
Or you can move portlets to the hidden category in liferay-display.xml However this only means they wont show up in the add menu
And finally you can create a startup action in a hook that disables portlets like this class does in the initRuntime method
http://svn.liferay.com/repos/public/plugins/branches/6.0.6/hooks/so-hook/docroot/WEB-INF/src/com/liferay/so/util/InstanceUtil.java
Hitoshi Ozawa, geändert vor 12 Jahren.
RE: How to remove LR OOTB portlets
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
If you don't want OOTB portlets, the best way is not to install them in the first place. Use the Liferay war file instead of the application bundle.
Section "stalling Liferay on an Existing Application Server" in the following page:
http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/installing-liferay-for-an-enterpri-4
Section "stalling Liferay on an Existing Application Server" in the following page:
http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/installing-liferay-for-an-enterpri-4
Kamesh Sampath, geändert vor 12 Jahren.
RE: How to remove LR OOTB portlets
Regular Member Beiträge: 158 Beitrittsdatum: 27.05.10 Neueste Beiträge
Another way I feel is to install them and not load them during the portal server boot up to save some memory. To do that identify or list portlets you dont want to load and then comment them out in the following two files int he $TOMCAT_HOME/webapps/ROOT/WEB-INF
Just be sure to comment or remove the portlets with same portlet-name from both these files.
This will help so have them installed and use them on need basis.
- liferay-portlet.xml
- portlet-custom.xml
Just be sure to comment or remove the portlets with same portlet-name from both these files.
This will help so have them installed and use them on need basis.
Balaji Murugesan, geändert vor 12 Jahren.
RE: How to remove LR OOTB portlets
Junior Member Beiträge: 74 Beitrittsdatum: 10.11.10 Neueste Beiträge
Hi Hitoshi,
We had downloaded the liferay with tomcat bundle and installed in two servers...Prod & Staging.
The same is working fine in Prod i.e. we are not able to see the OOTB portlets but its seen in Staging... any particular reason why this is happening.
We had downloaded the liferay with tomcat bundle and installed in two servers...Prod & Staging.
The same is working fine in Prod i.e. we are not able to see the OOTB portlets but its seen in Staging... any particular reason why this is happening.
Hitoshi Ozawa, geändert vor 12 Jahren.
RE: How to remove LR OOTB portlets
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
If you downloaded the Tomcat version, you should see all the OOTB portlets in both the prod and staing
UNLESS you've changed something as was suggested by fellow community members. The question now
is what you've done to the production server which you haven't yet done to staging.
Are all the portlets under the webapps directory in both servers?
UNLESS you've changed something as was suggested by fellow community members. The question now
is what you've done to the production server which you haven't yet done to staging.
Are all the portlets under the webapps directory in both servers?
Balaji Murugesan, geändert vor 12 Jahren.
RE: How to remove LR OOTB portlets
Junior Member Beiträge: 74 Beitrittsdatum: 10.11.10 Neueste Beiträge
Hitoshi,
the problem is we are restricting the portlets for normal users..... In our PROD only the admin user is able to see all the OOTB portlets...
normal users can only see the custom portlet which we have created.
is there any configuration that needs to be done.....
the problem is we are restricting the portlets for normal users..... In our PROD only the admin user is able to see all the OOTB portlets...
normal users can only see the custom portlet which we have created.
is there any configuration that needs to be done.....
Vijay Gohil, geändert vor 9 Jahren.
RE: How to remove LR OOTB portlets
New Member Beiträge: 16 Beitrittsdatum: 29.06.10 Neueste Beiträge
I also faced same functionality
For that I used hook to resolve this issue, I have override "\html\portlet\dockbar\view_category.jsp" file and did some changes to remove LR OOTB portlets
In this file LR iterated all portlet and display on UI
Regards,
Vijay
For that I used hook to resolve this issue, I have override "\html\portlet\dockbar\view_category.jsp" file and did some changes to remove LR OOTB portlets
In this file LR iterated all portlet and display on UI
Regards,
Vijay