Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
piyush liferay
What is the use of ext ??
15 de febrero de 2013 3:01

piyush liferay

Ranking: Junior Member

Mensajes: 40

Fecha de incorporación: 1 de enero de 2013

Mensajes recientes


what is the use of ext in liefray ??
Gaurav Jain
RE: What is the use of ext ??
15 de febrero de 2013 3:12

Gaurav Jain

Ranking: Regular Member

Mensajes: 146

Fecha de incorporación: 31 de enero de 2011

Mensajes recientes

Maybe you can check some documentations which describe it quite well:
Meera Prince
RE: What is the use of ext ??
15 de febrero de 2013 5:09

Meera Prince

Ranking: Liferay Legend

Mensajes: 1110

Fecha de incorporación: 8 de febrero de 2011

Mensajes recientes

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.

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
Portal Properties Hooks
Through portal properties hooks, we could change certain configuration properties dynamically and inject behaviour into the hooks defined in the file. All of the hooks that we have discussed above will revert, and their targeted functionality will be disabled immediately as soon as they are un-deployed from the portal. Also, each type of hook can easily be disabled via the file
Language Properties Hooks
Language properties hooks allow us to install new translations or override few words in existing translations. For example, you’re going to rename “Custom Attributes” as “Custom Fileds” in user editing mode or organization editing mode. You can create and folder content under plugin hook’s WEB-INF/classes, and then you could create a properties file under the plugin hook's WEB-INF/classes/content. Finally, add following line at
custom-attributes=Custom Fields
The above code shows that the message key custom-attributes will have display text Custom Fields.
Note that a file must exist in the plugin hook's WEB-INF/classes/content folder if language properties hooks got enabled.

Custom JSPs Hooks
Custom JSP hooks provide a way to easily modify JSP files of the portal without having to alter the core of the portal. A folder /META-INF/custom_jsps must exist in the plugin hook's Root folder if language properties hooks are enabled.
Portal Service Hooks
Portal service hooks allow us to customize portal services and models. That is, plugin hooks can override services and models. For example, to override UserLocalService, you can add the following in liferay-hook.xml.
As shown in above code, service was specified by tags <service-type> and <service-impl>. The tag <service-type> provides the original service or model in the portal; and the tag <service-impl> provides customize portal service or model, which will override the original service or model in the portal. More interestingly, you would able to specify many tags <service> if in need.
Note that portal service hooks, portal properties hooks and language properties hooks will get inactive when Hook plugins were un-deployed.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!