Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nagendra Kumar Busam
Limit number portlets on a page
August 9, 2010 12:14 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 598

Join Date: July 7, 2009

Recent Posts

Hi,

Is there any property to limit number of portlets in a page?

Any inputs in this regard are much welcome

Thanks & Regards,
- Nagendra Kumar
Nagendra Kumar Busam
RE: Limit number portlets on a page
August 10, 2010 6:54 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 598

Join Date: July 7, 2009

Recent Posts

Any inputs/points, thanks in advance
Daniel Kiyotomo Ozeki
RE: Limit number portlets on a page
September 21, 2012 10:43 AM
Answer

Daniel Kiyotomo Ozeki

LIFERAY STAFF

Rank: New Member

Posts: 16

Join Date: March 1, 2012

Recent Posts

Hello,

In order to limit the amount of portlets you can add on a page you must do the following:

1) Have the user be part of the organization or site
2) Go to "Roles" in control panel and add a regular role (not organization or site role)
2) In define permissions drop down menu go to Portal -> Site -> Page -> and check Update as a defined permission
3) Go to define permissions and go to Site Application ->(Portlet Name that you want your user to only add) -> Add to page
4) Add this role to your user: Go to User and Organizations. Click on your User and go to "Roles"
5)Finally you need to go to Server Administration and execute the "Clean Up Permissions".

This should now make it so that whatever user is attached to this role they will see an "Add" button on the left hand corner and will only be able to add portlets you specify.
Nagendra Kumar Busam
RE: Limit number portlets on a page
September 27, 2012 4:25 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 598

Join Date: July 7, 2009

Recent Posts

Hi Daniel,

Thank you very much for taking time to reply to this old post. Appreciate that.

Sorry I think I didn't ask my question in a proper way. Here is the use case, requirement is for number of portlets (say max of 20 portlets per page) NOT the what portlets can be added