Enabling drag & drop for guest user

thumbnail
3505243, modificat fa 15 anys. Liferay Master Apunts: 678 Data d'incorporació: 07/07/09 Publicacions recents
Hi,

Can somebody throw some light on how we can enable the drag & drop feature for guest user.

I hope at least some people might have tried/worked on this feature.

Any pointers are much welcome.

Regards,
- Nagendra Kumar
thumbnail
6678167, modificat fa 15 anys. Junior Member Apunts: 80 Data d'incorporació: 02/12/10 Publicacions recents
Hi Nagendra Kumar Busam,

I had to do almost the same thing some time ago. If I remember well, you actually need to have the UPDATE_LAYOUT permission in order to be able to move portlet. Though this permission also adds the ability to add or delete portlets in the page. You also need to add some code in render_portlet-ext.jsp, like :
portletDisplay.setShowMoveIcon(true);


You should have a look at the UpdateLayoutAction class, especially the part after
else if (cmd.equals("drag")) {


Regards,
Alexandre FILLATRE
thumbnail
3505243, modificat fa 15 anys. Liferay Master Apunts: 678 Data d'incorporació: 07/07/09 Publicacions recents
Hi Alexandre,

First of the thank you very much for the info.

I tried the same way like editing render_portlet.jsp (for time being)

portletDisplay.setShowMoveIcon(true);


I am not getting any move icon for guest user even though. Is there any way we can give update layout permission to Guest user?

Internally there are many permission checks, i am not getting where i need to change (which files exactly).

Regards,
- Nagendra Kumar