Well, finally it's pretty easy to hook taglibs.
Just create a hook plugin set the following line in the liferay-hook.xml :
1<hook>
2 <custom-jsp-dir>/META-INF/custom_jsps</custom-jsp-dir>
3</hook>
Then, add the taglib files you want to override inside the custom_jsps folder of your project.
1docroot/META-INF/custom_jsps
Let say you want to override the
liferay-ui:header, just copy the
init.jsp file and the
page.jsp located in the Liferay sources into :
1 portal-web/docroot/html/taglib/ui/header
and then, copy the files to your project in the following folder :
1docroot/META-INF/custom_jsps/html/taglib/ui/header
.
You can now deploy your hook !
I did this with Liferay 6.1
Please sign in to flag this as inappropriate.