Application Adapters

An application Application Adapter is a hook that does not affect the whole portal but just specific sites. Liferay-Wiki In order to define a Application Adapter you have to add the following line to liferay-hook.xml:

false
Afterwards you can activate the Application Adapter in 'Site Administration / Configuration / Application Adapter'.

Important note: If there are any includes in your hooked jsp Liferay will furthermore include the original and unmodified jsps. If you would like to included your hooked jsps you have to add your hook-project name to the filename. For example:
<%@ include file="/html/taglib/ui/asset_links/init.jsp" %>
becomes
<%@ include 
file="/html/taglib/ui/asset_links/init.BlogsPortlet-hook.jsp" %>

Leave a Reply