RE: Notifified when a layout is deleted

Elvis Silva, modified 6 Years ago. New Member Posts: 4 Join Date: 2/27/14 Recent Posts
There is a way to execute my code or knows when a page/layout is removed?.I have been seeing  the sourcecode when a layout is removed but there it doesn't leave signal which one page has been removed. Cheers.
thumbnail
David H Nebinger, modified 6 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Add a model listener on the entity and you can be invoked before deletion for logging or whatever. Cheers.
thumbnail
Mohammed Yasin, modified 6 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Also there is Event triggered on Layout Update /Add/Delete (layout.configuration.action.update/layout.configuration.action.delete).
You can refer may be this also helps you
Elvis Silva, modified 6 Years ago. New Member Posts: 4 Join Date: 2/27/14 Recent Posts
Thanks u very much guys, it works! emoticon