Hi all,
I have read some documentation related to Liferay hooks and it looks really nice ;) However I have few questions on how to create a hook and when should I use hooks instead of modifying Liferay ext.
1. All the examples and blog posts that I have read start from the fact that the hook project have already been created and actually they only show how to use simple hook. Starting from the scratch it would be nice to know how to create a hook - meaning that Plugins SDK has a folder for hooks. If one wants to create a portlet, the method is to run ./create.sh, etc, with correct parameters and baseline for portlet is created. How this can be achieved with hooks?
2. I have seen wol-portlet example that obviously utilizes hooks. Can I create a hook that has nothing to do with portlets. For instance if I would like to add some logic to liferay portalt startup - can I do it with hooks?
If someone can answer these questions, I can try it out and improve Liferay's wiki related to hooks.
PS: here's current information on wiki about hooks:
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Portal+Hook+Plugins- Lari
Please sign in to flag this as inappropriate.