Forums

Home » Liferay Portal » English » Liferay Legacy »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Amritashan S. Lal
Portlet Drag Drop not working
February 8, 2007 8:40 AM
Answer

Amritashan S. Lal

Rank: New Member

Posts: 10

Join Date: December 22, 2006

Recent Posts

Hi all,
I have created a new theme by modifying the Velocity theme at several places.
Now the problem is that I am not able to drag-drop the portlets. The cursor does not change to the draggable one. And attempting to drag the portlet simply selects the title of the portlet.
How do i make the porlet draggable? What did i miss?

Thanks in advance.
Jevon Wright
RE: Portlet Drag Drop not working
December 14, 2011 6:14 PM
Answer

Jevon Wright

Rank: New Member

Posts: 8

Join Date: December 5, 2011

Recent Posts

The default layout structure on http://www.liferay.com/community/wiki/-/wiki/Main/Layout+Template will not permit drag/drop of portlets. To enable drag/drop on custom layouts, you must have a <div id="main-content" role="main"> surrounding the layout itself.

See: http://www.liferay.com/community/forums/-/message_boards/message/7658822/maximiz­ed
Mazhar Alam
RE: Portlet Drag Drop not working
December 14, 2011 11:03 PM
Answer

Mazhar Alam

Rank: Junior Member

Posts: 76

Join Date: November 25, 2011

Recent Posts

Hi,
I am also facing the same problems with the layout,some of the portlets are not allowed to drag/drop in the page layout which i selected..instead the portlets are aligned in the same line one after other..

<div id="main-content" role="main"> this tag is already present in the layout.tpl

Any solutions..

Thanks in advance..
Olaf Kock
RE: Portlet Drag Drop not working
December 15, 2011 1:07 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1298

Join Date: September 23, 2008

Recent Posts

IMHO Drag&Drop is dependent on some (I don't know exactly which) css classes. As you just say that you "changed your templates" I guess that you might have removed the important classes. Compare your templates with the original ones and try to mimic what you see there.

Also - just to be sure - make sure that you don't have staging activated and are trying to drag/drop in production (this won't work by design)