Fórum

hook for portlet outside root

Sanket Gosavi, modificado 11 Anos atrás.

hook for portlet outside root

Junior Member Postagens: 35 Data de Entrada: 24/12/11 Postagens Recentes
can i create a hook to modify portlet which is outside root?........i.e. friend's activities..?
How?
thumbnail
Pankaj Kathiriya, modificado 11 Anos atrás.

RE: hook for portlet outside root

Liferay Master Postagens: 722 Data de Entrada: 05/08/10 Postagens Recentes
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, modificado 11 Anos atrás.

RE: hook for portlet outside root

Junior Member Postagens: 35 Data de Entrada: 24/12/11 Postagens Recentes
thnks a lot..
thumbnail
Aneesha Rao, modificado 11 Anos atrás.

RE: hook for portlet outside root

New Member Postagens: 14 Data de Entrada: 24/02/12 Postagens Recentes
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, modificado 11 Anos atrás.

RE: hook for portlet outside root

Regular Member Postagens: 112 Data de Entrada: 15/03/12 Postagens Recentes
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, modificado 11 Anos atrás.

RE: hook for portlet outside root

New Member Postagens: 14 Data de Entrada: 24/02/12 Postagens Recentes
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, modificado 11 Anos atrás.

RE: hook for portlet outside root

Liferay Master Postagens: 722 Data de Entrada: 05/08/10 Postagens Recentes
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, modificado 11 Anos atrás.

RE: hook for portlet outside root

Regular Member Postagens: 112 Data de Entrada: 15/03/12 Postagens Recentes
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