Foros de discusión

How to make changes to existing liferay plugins/portlets

Yannick Weinz, modificado hace 11 años.

How to make changes to existing liferay plugins/portlets

Junior Member Mensajes: 69 Fecha de incorporación: 15/11/10 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?
thumbnail
Paul ., modificado hace 11 años.

RE: How to make changes to existing liferay plugins/portlets

Liferay Master Mensajes: 522 Fecha de incorporación: 29/08/11 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
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: How to make changes to existing liferay plugins/portlets

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 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.
thumbnail
Paul ., modificado hace 11 años.

RE: How to make changes to existing liferay plugins/portlets

Liferay Master Mensajes: 522 Fecha de incorporación: 29/08/11 Mensajes recientes
You are right Hitoshi. Indeed it's not part of the ROOT.
Thanks
thumbnail
Dhrutika Parekh, modificado hace 11 años.

RE: How to make changes to existing liferay plugins/portlets

Expert Mensajes: 435 Fecha de incorporación: 9/02/09 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
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: How to make changes to existing liferay plugins/portlets

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 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