jeudi 28 mai 2015

How to delete a portlet in Liferay 6.1 programmatically from code

I'm working on Liferay 6.1
I want to delete a portlet in Liferay 6.1 from my code. What I have done so far is:

<a onclick="Liferay.Portlet.close('#p_p_id_28_'); return false;">Remove</a>

Above code is working fine. But it is working on the current page only i.e. it can delete the portlet(s) which is there on the current page only.

But I want to delete the portlet(s) which could be some where on the menu of my portal using its layout id.

Please suggest a way out. Thanks in advance.

Regards,
Varun Jain

Aucun commentaire:

Enregistrer un commentaire