Foren

hook for portlet outside root

Sanket Gosavi, geändert vor 12 Jahren.

hook for portlet outside root

Junior Member Beiträge: 35 Beitrittsdatum: 24.12.11 Neueste Beiträge
can i create a hook to modify portlet which is outside root?........i.e. friend's activities..?
How?
thumbnail
Pankaj Kathiriya, geändert vor 12 Jahren.

RE: hook for portlet outside root

Liferay Master Beiträge: 722 Beitrittsdatum: 05.08.10 Neueste Beiträge
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, geändert vor 12 Jahren.

RE: hook for portlet outside root

Junior Member Beiträge: 35 Beitrittsdatum: 24.12.11 Neueste Beiträge
thnks a lot..
thumbnail
Aneesha Rao, geändert vor 11 Jahren.

RE: hook for portlet outside root

New Member Beiträge: 14 Beitrittsdatum: 24.02.12 Neueste Beiträge
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
thumbnail
Muzakir Khan, geändert vor 11 Jahren.

RE: hook for portlet outside root

Regular Member Beiträge: 112 Beitrittsdatum: 15.03.12 Neueste Beiträge
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
thumbnail
Aneesha Rao, geändert vor 11 Jahren.

RE: hook for portlet outside root

New Member Beiträge: 14 Beitrittsdatum: 24.02.12 Neueste Beiträge
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
thumbnail
Pankaj Kathiriya, geändert vor 11 Jahren.

RE: hook for portlet outside root

Liferay Master Beiträge: 722 Beitrittsdatum: 05.08.10 Neueste Beiträge
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
thumbnail
Muzakir Khan, geändert vor 11 Jahren.

RE: hook for portlet outside root

Regular Member Beiträge: 112 Beitrittsdatum: 15.03.12 Neueste Beiträge
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