O'Reilly logo

Liferay Portal 5.2 Systems Development by Jonas Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using hooks more efficiently

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 so-portlet project is a portlet plugin for Social Office with hooks.

General usage

In general, there are three kinds of hook parameters: portal-properties (called portal properties hooks), language-properties (called language properties hooks), and custom-jsp-dir (called JSP hooks) as specified in /portal/definitions/liferay-hook_5_2_0.dtd.

<!ELEMENT hook (portal-properties?, language-properties*, custom-jsp-dir?)>

As shown in the preceding code, the ordering of elements is significant in the DTD—you need to have your portal properties, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required