Fórum

Extending journal by using a hook

thumbnail
alex wom, modificado 12 Anos atrás.

Extending journal by using a hook

Regular Member Postagens: 218 Data de Entrada: 04/05/09 Postagens Recentes
I would like to extend the journal service by using a hook. I created a jsp hook to extend article_action.jsp to add my action about articles, I added my action, but now I don't know how to update struts and tiles config files to add the action handler. I've seen that in portal are available struts-config-ext.xml and inside struts-config.xml is referred tiles-defs-ext.xml, may override them in my hook?
thumbnail
jelmer kuperus, modificado 12 Anos atrás.

RE: Extending journal by using a hook

Liferay Legend Postagens: 1191 Data de Entrada: 10/03/10 Postagens Recentes
You cannot change struts actions from hooks (yet) though this will be available in the future : see

http://www.liferay.com/web/mika.koivisto/blog/-/blogs/7132115

For now you'll have to use ext. Eg. create an ext plugin, write your ext action in ext-impl and configure it in struts-config-ext.xml in ext-web.

You will not be able to hot deploy ext plugins so this is somewhat of a tedious process