Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Yannick Weinz
How to make changes to existing liferay plugins/portlets
May 23, 2012 9:57 AM
Answer

Yannick Weinz

Rank: Junior Member

Posts: 69

Join Date: November 15, 2010

Recent Posts

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
May 23, 2012 11:06 PM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

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
May 27, 2012 6:35 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

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
May 28, 2012 1:02 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

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
May 28, 2012 5:47 AM
Answer

Dhrutika Vyas

Rank: Expert

Posts: 438

Join Date: February 9, 2009

Recent Posts

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
May 28, 2012 2:36 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

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