Search code examples
liferay-6

Liferay Hooks plugins folder


I am using Liferay 6 version. I am trying to Learn Liferay, due to its importance.

I am into the Liferay Hooks concept, for this I am following this site:

http://kamalkantrajput.blogspot.com/2009/05/using-hooks-in-liferay-for-customizing.html

In this the author mentions about this below:
Go to plugins/hooks create a folder with any name. eg asset-publisher-hook

Please tell me where can i find the plugins folder? Because inside the Liferay Tomcat, I found 6 folders with the name plugins and no folder hooks under this .

Please guide me.

enter image description here


Solution

  • You might also want to read the documentation in the Liferay Wiki:

    http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Hook+Plugins

    In a Nutshell: once you have created the hook plugin (as described by adarshr) you can simply deploy the portlet like any other portlet.

    If you want to remove the hook, make sure to undeploy it while Tomcat is running. Otherwise Liferay will not be informed about it and the original JSPs won't be restored.

    Un-deploying can be done by simply deleting the portlet's directory in the Tomcat webapps folder.