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..
Please sign in to flag this as inappropriate.