Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Eduardo Aragón
Avoid drag and drop portlets into a specific column of layout
February 8, 2012 4:37 AM
Answer

Eduardo Aragón

Rank: New Member

Posts: 6

Join Date: February 8, 2012

Recent Posts

I would like to prevent dropping portlets into a certain column of my layout template.
For example if I have a layout template with column-1, column-2 and column-3, I would like users to be able to drag and drop portlets as they wish between column-1 and column-2 but not in column-3. (Using liferay6.1 GA)

I think about two ways to achieve it. The first one is try to extend TemplateProcessor class and add a if clause where if the column id is the same column id i just put in my layout then prevent to add portlets. The problem is that I must execute this action depending of the role of current user.

The second idea is try to modify the js that control drag and drop actions.

Someone knows what is the best way, or there is another better???...

Thank you all in advance..
Eduardo Aragón
RE: Avoid drag and drop portlets into a specific column of layout
February 8, 2012 7:43 AM
Answer

Eduardo Aragón

Rank: New Member

Posts: 6

Join Date: February 8, 2012

Recent Posts

Someone knows the best way??.....
Samuel Kong
RE: Avoid drag and drop portlets into a specific column of layout
February 8, 2012 10:37 PM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Master

Posts: 900

Join Date: March 10, 2008

Recent Posts

1. Locate the dock bar
2. Manage > Page Customizations
3. Select the columns you want to allow users to drag portlets into.
4. Manage > Page Customizations again to exit out of the edit mode.

For more info take a look at the Page Customizations section in the Page Creation and Management page of the User Guide