Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
Lari Tuominen
Hooks
30 de octubre de 2008 23:35
Respuesta

Lari Tuominen

Ranking: Expert

Mensajes: 283

Fecha de incorporación: 7 de noviembre de 2007

Mensajes recientes

Hi all,

I have read some documentation related to Liferay hooks and it looks really nice ;) However I have few questions on how to create a hook and when should I use hooks instead of modifying Liferay ext.

1. All the examples and blog posts that I have read start from the fact that the hook project have already been created and actually they only show how to use simple hook. Starting from the scratch it would be nice to know how to create a hook - meaning that Plugins SDK has a folder for hooks. If one wants to create a portlet, the method is to run ./create.sh, etc, with correct parameters and baseline for portlet is created. How this can be achieved with hooks?

2. I have seen wol-portlet example that obviously utilizes hooks. Can I create a hook that has nothing to do with portlets. For instance if I would like to add some logic to liferay portalt startup - can I do it with hooks?

If someone can answer these questions, I can try it out and improve Liferay's wiki related to hooks.

PS: here's current information on wiki about hooks: http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Portal+Hook+Plugins

- Lari
Mark Doerr
RE: Hooks
31 de octubre de 2008 8:47
Respuesta

Mark Doerr

Ranking: Junior Member

Mensajes: 25

Fecha de incorporación: 14 de julio de 2008

Mensajes recientes

The same content that Lari found in the wiki is also in a Blog by (I think) Ray Agué.

There are some helpful comments to that article, but it still seems like not enough documentation to go to work with. Is there a more in depth discussion coming soon?
NIKHIL DIXIT
RE: Hooks
27 de abril de 2012 0:34
Respuesta

NIKHIL DIXIT

Ranking: New Member

Mensajes: 1

Fecha de incorporación: 27 de abril de 2012

Mensajes recientes

Facing stackoverflow exception after creating a hook to override the jsp.
Please help
David H Nebinger
RE: Hooks
27 de abril de 2012 6:05
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11295

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

First do not revive a dead thread w/ a new question - post it as a new thread.

Second, unless you're going to provide some info (i.e. the stack trace), don't expect much help. There is absolutely nothing in your post that we could use to assist.