フォーラム

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

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Sanket Gosavi
hook for portlet outside root
2012/04/07 23:42
答え

Sanket Gosavi

ランク: Junior Member

投稿: 35

参加年月日: 2011/12/24

最近の投稿

can i create a hook to modify portlet which is outside root?........i.e. friend's activities..?
How?
Pankaj Kathiriya
RE: hook for portlet outside root
2012/04/08 2:22
答え

Pankaj Kathiriya

ランク: Liferay Master

投稿: 612

参加年月日: 2010/08/04

最近の投稿

Hi Sanket,


Portlet friend's activities is portlet defined in social-networking portlet and is not in Liferay's ROOT so you cant have hook to modify it.

You can directly change this portlet as you do with your custom portlet, just have social-networking portlet as a Plugin-portlet and change the part you want.

And deploy that portlet again.


HTH,
Thanks&Regards.
Pankaj Kathiriya
Sanket Gosavi
RE: hook for portlet outside root
2012/04/08 2:35
答え

Sanket Gosavi

ランク: Junior Member

投稿: 35

参加年月日: 2011/12/24

最近の投稿

thnks a lot..
Aneesha Rao
RE: hook for portlet outside root
2012/06/28 23:23
答え

Aneesha Rao

ランク: New Member

投稿: 14

参加年月日: 2012/02/24

最近の投稿

Hi Pankaj,

Could you put some light on how to use portlets outside ROOT as a custom (Plugin) portlet.
I get a build compile error.

Thanks and Regards,
Aneesha
Muzakir Khan
RE: hook for portlet outside root
2012/07/13 0:18
答え

Muzakir Khan

ランク: Regular Member

投稿: 112

参加年月日: 2012/03/14

最近の投稿

Aneesha Rao:


Could you put some light on how to use portlets outside ROOT as a custom (Plugin) portlet.
I get a build compile error.

Thanks and Regards,
Aneesha

Think so you are from Java Back ground.. In liferay the portlets are found outside the ROOT only.. whereas in java everything is present inside the ROOT folder

Regards
Muzakir Khan
Aneesha Rao
RE: hook for portlet outside root
2012/07/13 1:54
答え

Aneesha Rao

ランク: New Member

投稿: 14

参加年月日: 2012/02/24

最近の投稿

I meant on creation of hook.
as on how to make a social networking portlet as a custom portlet, since there is no option to create a hook for the same
Pankaj Kathiriya
RE: hook for portlet outside root
2012/07/13 2:16
答え

Pankaj Kathiriya

ランク: Liferay Master

投稿: 612

参加年月日: 2010/08/04

最近の投稿

Hi Aneesha,

If you have for example social networking portlet installed from Plugin Installations, then there wont be any build.xml, So copy build.xml of other portlet you have and change project-name attribute.
Amd you have to create new docroot folder and copy WEB-INF, META-INF, jsps etc all under it.

Then you would be able to deploy .

HTH,
Thanks.
Pankaj
Muzakir Khan
RE: hook for portlet outside root
2012/07/13 4:16
答え

Muzakir Khan

ランク: Regular Member

投稿: 112

参加年月日: 2012/03/14

最近の投稿

Aneesha Rao:
I meant on creation of hook.
as on how to make a social networking portlet as a custom portlet, since there is no option to create a hook for the same


Hi!
Firstly create a hook by any custom name, say "socialnetwork" hook, as shown in screenshot1
Now, goto create a new liferay portlet, under that goto the option "New Liferay Hook" option as shown in screenshot2
Next, click on "custom JSP" or "portal properties" or other option as shown in screenshot3. In my case I am selecting custom JSP option.
A window will be opened, there you type "social" and select "socialnetwork.jsp" as shown in screenshot4
After that, you will be redirected to JSP of inbuilt socialnetwork, and now you can make it customized..
Hope so it helps you.

Kind Regards
Muzakir Khan
画像の固定

画像の固定

画像の固定

画像の固定

添付ファイル: screenshot1.png (91.0k), screenshot2.png (199.9k), screenshot3.png (115.8k), screenshot4.png (71.1k)