Forums de discussion

Differnce between EXT and HOOK in liferay

thumbnail
Subhasis Roy, modifié il y a 12 années.

Differnce between EXT and HOOK in liferay

Expert Publications: 275 Date d'inscription: 20/01/12 Publications récentes
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.
thumbnail
jaid shaik, modifié il y a 12 années.

RE: Differnce between EXT and HOOK in liferay

Regular Member Publications: 171 Date d'inscription: 08/10/10 Publications récentes
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.
thumbnail
Subhasis Roy, modifié il y a 12 années.

RE: Differnce between EXT and HOOK in liferay

Expert Publications: 275 Date d'inscription: 20/01/12 Publications récentes
Thanks jaid
thumbnail
Hitoshi Ozawa, modifié il y a 12 années.

RE: Differnce between EXT and HOOK in liferay

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
There is also one other major difference: It's possible to deploy several hooks but it only possible to deploy one ext plugin.
thumbnail
Subhasis Roy, modifié il y a 12 années.

RE: Differnce between EXT and HOOK in liferay

Expert Publications: 275 Date d'inscription: 20/01/12 Publications récentes
Hitoshi 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?
thumbnail
Hitoshi Ozawa, modifié il y a 12 années.

RE: Differnce between EXT and HOOK in liferay

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
It's only possible to deploy one ext plugin per Liferay installation.
Siraj Choudhary, modifié il y a 7 années.

RE: Differnce between EXT and HOOK in liferay

Junior Member Publications: 31 Date d'inscription: 13/11/13 Publications récentes
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
thumbnail
Mohit Kumar, modifié il y a 7 années.

RE: Differnce between EXT and HOOK in liferay

New Member Envoyer: 1 Date d'inscription: 05/02/13 Publications récentes
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
thumbnail
Mika Koivisto, modifié il y a 12 années.

RE: Differnce between EXT and HOOK in liferay

Liferay Legend Publications: 1519 Date d'inscription: 07/08/06 Publications récentes
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.
thumbnail
Hitoshi Ozawa, modifié il y a 12 années.

RE: Differnce between EXT and HOOK in liferay

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
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