フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド数 [ 前へ | 次へ ]
toggle
Yannick Weinz
How to make changes to existing liferay plugins/portlets
2012/05/23 9:57
答え

Yannick Weinz

ランク: Junior Member

投稿数: 65

参加年月日: 2010/11/15

最近の投稿

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
2012/05/23 23:06
答え

Bart Simpson

ランク: Liferay Master

投稿数: 507

参加年月日: 2011/08/29

最近の投稿

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
2012/05/27 6:35
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿数: 8000

参加年月日: 2010/03/23

最近の投稿

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
2012/05/28 1:02
答え

Bart Simpson

ランク: Liferay Master

投稿数: 507

参加年月日: 2011/08/29

最近の投稿

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
2012/05/28 5:47
答え

Dhrutika Vyas

ランク: Expert

投稿数: 332

参加年月日: 2009/02/09

最近の投稿

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
2012/05/28 14:36
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿数: 8000

参加年月日: 2010/03/23

最近の投稿

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