留言板

Differnce between EXT and HOOK in liferay

thumbnail
Subhasis Roy,修改在12 年前。

Differnce between EXT and HOOK in liferay

Expert 帖子: 275 加入日期: 12-1-20 最近的帖子
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,修改在12 年前。

RE: Differnce between EXT and HOOK in liferay

Regular Member 帖子: 171 加入日期: 10-10-8 最近的帖子
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,修改在12 年前。

RE: Differnce between EXT and HOOK in liferay

Expert 帖子: 275 加入日期: 12-1-20 最近的帖子
Thanks jaid
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Differnce between EXT and HOOK in liferay

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
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,修改在12 年前。

RE: Differnce between EXT and HOOK in liferay

Expert 帖子: 275 加入日期: 12-1-20 最近的帖子
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,修改在12 年前。

RE: Differnce between EXT and HOOK in liferay

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
It's only possible to deploy one ext plugin per Liferay installation.
Siraj Choudhary,修改在7 年前。

RE: Differnce between EXT and HOOK in liferay

Junior Member 帖子: 31 加入日期: 13-11-13 最近的帖子
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,修改在7 年前。

RE: Differnce between EXT and HOOK in liferay

New Member 发布: 1 加入日期: 13-2-5 最近的帖子
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,修改在12 年前。

RE: Differnce between EXT and HOOK in liferay

Liferay Legend 帖子: 1519 加入日期: 06-8-7 最近的帖子
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,修改在12 年前。

RE: Differnce between EXT and HOOK in liferay

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
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