Hooks are the most powerful plugin provided by liferay which can be used for customizing Liferay’s core features.
We can definitely use EXT plugin which can be achieved by Hook plugin but for best practices, we should use hook plugin as it is hot-deployable and also easy for upgradation/migration process.
Creating hook - https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/creating-a-hook-liferay-portal-6-2-dev-guide-10-en
Before you start actual development, you should know whether to use Hook or EXT.
Below are the some types of hooks :
- Override Portal.properties (Not all properties)
- Override Language Properties
- Customize Jsps
- Customize Indexer class for search
- Customize existing localServiceImpl Classes
- Customize Existing servlet filters
- Customize existingStruts action classes
No comments:
Post a Comment