Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Yannick Weinz
How to make changes to existing liferay plugins/portlets
23 de mayo de 2012 9:57
Respuesta

Yannick Weinz

Ranking: Junior Member

Mensajes: 69

Fecha de incorporación: 15 de noviembre de 2010

Mensajes recientes

Hi all,

can anyone explain to my how i make changes to already existing and installed liferay pluginst / portlets?

We're using Liferay 6.0.5, and have the Chat Portlet installed (as per default).
Now i want to make some changes to it (i want to change what people are displayed in the chat... instead of the way right now i want it to use the custom contacts we use). Unfortunaltely i have no idea how to make changes to that portlet...

Using a hook doesn't work because the files are not shown when i try to create a hook.

I know that in the chat Portlet is in the webapps directory of the server and that it hase the source code, by i have no clue how to effectvely make changes to the source code in a way that they are applied to the installed chat Portlet...

All my attempts to import the code into Eclipse (we use the Eclipse Liferay IDE with the Liferay SDK) failed so far....

Does anyone has any advise?
Bart Simpson
RE: How to make changes to existing liferay plugins/portlets
23 de mayo de 2012 23:06
Respuesta

Bart Simpson

Ranking: Liferay Master

Mensajes: 524

Fecha de incorporación: 29 de agosto de 2011

Mensajes recientes

Making changes to existing Liferay plugins / portlets could be achieved via Ext plugin http://www.liferay.com/community/wiki/-/wiki/Main/Ext+Plugin
However ext-plugin applies changes to liferay's code so it's better to do it with hooks. JSP hooks are the easy way around if you could achieve what you intend to.
http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Hook+Plugins
If it's possible to use liferay 6.1 I'd suggest you build you implementation on it as it supports struts action hooks as well to make changes to existing java struts action files
http://www.liferay.com/web/mika.koivisto/blog/-/blogs/7132115

All my attempts to import the code into Eclipse (we use the Eclipse Liferay IDE with the Liferay SDK) failed so far....


What exactly are the problems you are facing? You can import the source as java project. A basic guide is available for it http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/set-up
Hitoshi Ozawa
RE: How to make changes to existing liferay plugins/portlets
27 de mayo de 2012 6:35
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7949

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

Paul, Chat portlet is not in ROOT portlet so you won't be able to use ext plugin nor hook. You just have to modify the source code directly.
Bart Simpson
RE: How to make changes to existing liferay plugins/portlets
28 de mayo de 2012 1:02
Respuesta

Bart Simpson

Ranking: Liferay Master

Mensajes: 524

Fecha de incorporación: 29 de agosto de 2011

Mensajes recientes

You are right Hitoshi. Indeed it's not part of the ROOT.
Thanks
Dhrutika Vyas
RE: How to make changes to existing liferay plugins/portlets
28 de mayo de 2012 5:47
Respuesta

Dhrutika Vyas

Ranking: Expert

Mensajes: 438

Fecha de incorporación: 9 de febrero de 2009

Mensajes recientes

Hi ,

You can do two things:
1. Create chat portlet in plugins>portlets and copy as portlet structure from webapps.
2. Download Plugin chat portlet form plugins repositrory.

After following step 1 or 2 ,make your custom changes in chat portlet.

Regards,
Dhrutika
Hitoshi Ozawa
RE: How to make changes to existing liferay plugins/portlets
28 de mayo de 2012 14:36
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7949

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

I've already given that reply. He needs a more basic step by step instruction on how to build a portlet without reading available documentations.

FYI:
http://www.liferay.com/community/forums/-/message_boards/message/14076601