Fórumok
hook for portlet outside root
Sanket Gosavi, módosítva 12 év-val korábban
hook for portlet outside root
Junior Member Bejegyzések: 35 Csatlakozás dátuma: 2011.12.24. Legújabb bejegyzések
can i create a hook to modify portlet which is outside root?........i.e. friend's activities..?
How?
How?
Pankaj Kathiriya, módosítva 12 év-val korábban
RE: hook for portlet outside root
Liferay Master Bejegyzések: 722 Csatlakozás dátuma: 2010.08.05. Legújabb bejegyzések
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
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, módosítva 12 év-val korábban
RE: hook for portlet outside root
Junior Member Bejegyzések: 35 Csatlakozás dátuma: 2011.12.24. Legújabb bejegyzések
thnks a lot..
Aneesha Rao, módosítva 11 év-val korábban
RE: hook for portlet outside root
New Member Bejegyzések: 14 Csatlakozás dátuma: 2012.02.24. Legújabb bejegyzések
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
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, módosítva 11 év-val korábban
RE: hook for portlet outside root
Regular Member Bejegyzések: 112 Csatlakozás dátuma: 2012.03.15. Legújabb bejegyzésekAneesha 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, módosítva 11 év-val korábban
RE: hook for portlet outside root
New Member Bejegyzések: 14 Csatlakozás dátuma: 2012.02.24. Legújabb bejegyzések
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
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, módosítva 11 év-val korábban
RE: hook for portlet outside root
Liferay Master Bejegyzések: 722 Csatlakozás dátuma: 2010.08.05. Legújabb bejegyzések
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
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, módosítva 11 év-val korábban
RE: hook for portlet outside root
Regular Member Bejegyzések: 112 Csatlakozás dátuma: 2012.03.15. Legújabb bejegyzésekAneesha 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