Foren
Differnce between EXT and HOOK in liferay
Subhasis Roy, geändert vor 12 Jahren.
Differnce between EXT and HOOK in liferay
Expert Beiträge: 275 Beitrittsdatum: 20.01.12 Neueste Beiträge
Can any one please explain me the simple difference between HOOK and EXT.
I know that Hook is hot deploy able and EXT is not. But can any one please tell me when we use EXT and when we use Hook.
I know that Hook is hot deploy able and EXT is not. But can any one please tell me when we use EXT and when we use Hook.
jaid shaik, geändert vor 12 Jahren.
RE: Differnce between EXT and HOOK in liferay
Regular Member Beiträge: 171 Beitrittsdatum: 08.10.10 Neueste Beiträge
Hooks is a feature to catch hold of the properties and JSP files into an instance of the portal as if catching them with a hook. Hook plugins are more powerful plugins that come to complement portlets, themes, layout templates, and web modules. A hook plugin is always combined with a portlet plugin. For instance, the portlet social-portlet is a portlet plugin for Social Office with hooks. In general, hooks would be very helpful tools to customize the portal without touching the code part of the portal. In addition, you would use hooks to provide patches for the portal systems or social office products.
source:Liferay Portal 6 Enterprise Intranets
EXT:
EXT is used to customize and extend the Liferay portal. EXT builds a new ROOT webapp and replaces by a huge build mechanism your existing Liferay portal.
The Liferay EXT Environment is where you would ideally make changes to the portal itself. In other words, this is where you customize or “extend” the portal. You may ask, “Why can’t we just make the changes to the portal source directly?” The answer is that you technically CAN, but if and when you have to upgrade, you will have a tough time sorting out what is out-of-the-box and what is customized. EXT Environment keeps things separate.
source:Liferay Portal 6 Enterprise Intranets
EXT:
EXT is used to customize and extend the Liferay portal. EXT builds a new ROOT webapp and replaces by a huge build mechanism your existing Liferay portal.
The Liferay EXT Environment is where you would ideally make changes to the portal itself. In other words, this is where you customize or “extend” the portal. You may ask, “Why can’t we just make the changes to the portal source directly?” The answer is that you technically CAN, but if and when you have to upgrade, you will have a tough time sorting out what is out-of-the-box and what is customized. EXT Environment keeps things separate.
Subhasis Roy, geändert vor 12 Jahren.
RE: Differnce between EXT and HOOK in liferay
Expert Beiträge: 275 Beitrittsdatum: 20.01.12 Neueste Beiträge
Thanks jaid
Hitoshi Ozawa, geändert vor 12 Jahren.
RE: Differnce between EXT and HOOK in liferay
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
There is also one other major difference: It's possible to deploy several hooks but it only possible to deploy one ext plugin.
Subhasis Roy, geändert vor 12 Jahren.
RE: Differnce between EXT and HOOK in liferay
Expert Beiträge: 275 Beitrittsdatum: 20.01.12 Neueste BeiträgeHitoshi Ozawa:
There is also one other major difference: It's possible to deploy several hooks but it only possible to deploy one ext plugin.
Are you talking about one single project perspective?
Hitoshi Ozawa, geändert vor 12 Jahren.
RE: Differnce between EXT and HOOK in liferay
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
It's only possible to deploy one ext plugin per Liferay installation.
Siraj Choudhary, geändert vor 7 Jahren.
RE: Differnce between EXT and HOOK in liferay
Junior Member Beiträge: 31 Beitrittsdatum: 13.11.13 Neueste Beiträge
Hi - Is there any real time example to understand the difference more clearly, like the thing we can achieve by Ext plugin but not by Hook to customize the portal.
Many Thanks,
Siraj
Many Thanks,
Siraj
Mohit Kumar, geändert vor 7 Jahren.
RE: Differnce between EXT and HOOK in liferay
New Member Beitrag: 1 Beitrittsdatum: 05.02.13 Neueste Beiträge
Hi,
As already explained by above mates its always better to use hooks over ext, for changes related to jsp and properties files always go for hooks, Example here below:-
* Suppose you want to customize login portlet to add more fields or want to get login authentication either through email Address or through User name.
you should go for Ext if you want to customize Role system based portal activity(its just one sample scenario for EXT, there can be many possible reasons for using ext.)
Thanks a lot.
Mohit Kumar
As already explained by above mates its always better to use hooks over ext, for changes related to jsp and properties files always go for hooks, Example here below:-
* Suppose you want to customize login portlet to add more fields or want to get login authentication either through email Address or through User name.
you should go for Ext if you want to customize Role system based portal activity(its just one sample scenario for EXT, there can be many possible reasons for using ext.)
Thanks a lot.
Mohit Kumar
Mika Koivisto, geändert vor 12 Jahren.
RE: Differnce between EXT and HOOK in liferay
Liferay Legend Beiträge: 1519 Beitrittsdatum: 07.08.06 Neueste Beiträge
Hooks can only hook to a pre exposed functionality where as Ext can customize or override anything. Hooks are recommended over Ext because they are safer and easier to upgrade.
Hitoshi Ozawa, geändert vor 12 Jahren.
RE: Differnce between EXT and HOOK in liferay
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Liferay documentation does a pretty good job of explaining the differences:
http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/extending-and-customizing-lifer-3
http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/extending-and-customizing-lifer-3