Fórumok

I want to extend blogs. Where can I find the portlet source code?

Jianbin LIN, módosítva 12 év-val korábban

I want to extend blogs. Where can I find the portlet source code?

New Member Bejegyzések: 10 Csatlakozás dátuma: 2011.12.24. Legújabb bejegyzések
Hello everyone,

I want to extend blogs. Does anyone know where I can find the blogs portlet source code?

Thank you.

regards,
Jianbin
Tony Rad, módosítva 12 év-val korábban

RE: I want to extend blogs. Where can I find the portlet source code?

Junior Member Bejegyzések: 29 Csatlakozás dátuma: 2011.02.25. Legújabb bejegyzések
Hi Jianbin,

blogs portlets are in the portal-trunk.
So you can download them from here selecting 'Portal source' from the combobox.

If you want to change the UI or the services you can create an hook plugin using liferay-sdk hook/create.sh (or bat under windows) as described here:
- http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/overriding-a-jsp
- http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Hook+Plugins#section-Portal+Hook+Plugins-JSPs
- http://www.liferay.com/web/jonas.yuan/blog/-/blogs/4639517
- http://kamalkantrajput.blogspot.com/2009/05/using-hooks-in-liferay-for-customizing.html

For example to override and change the main view.jsp you can copy it from
/portal-trunk/portal-web/docroot/html/portlet/blogs/view.jsp
to
/your-plugin-hook/docroot/META-INF/custom_jsps/html/portlet/blogs/view.jsp
modify it and then deploy in your portal using liferay-sdk.

hope this helps.
Regards
Jianbin LIN, módosítva 12 év-val korábban

RE: I want to extend blogs. Where can I find the portlet source code?

New Member Bejegyzések: 10 Csatlakozás dátuma: 2011.12.24. Legújabb bejegyzések
Hi,

thank you for the information. Sorry I am new for liferay. Actually, I have got the source code of the portal. I just could not find the source code for blogs like the portlet I create in the sdk/protlets that I can deploy directly to the portal.

cheers,
Jianbin
thumbnail
Hitoshi Ozawa, módosítva 12 év-val korábban

RE: I want to extend blogs. Where can I find the portlet source code?

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
It's here:

http://svn.liferay.com/repos/public/portal/trunk/portal-impl/src/com/liferay/portlet/blogs/
Jianbin LIN, módosítva 12 év-val korábban

RE: I want to extend blogs. Where can I find the portlet source code?

New Member Bejegyzések: 10 Csatlakozás dátuma: 2011.12.24. Legújabb bejegyzések
Thanks a lot.
thumbnail
Hitoshi Ozawa, módosítva 12 év-val korábban

RE: I want to extend blogs. Where can I find the portlet source code?

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
FYI, extend blog by creating hook or ext plugin instead of directly modifying Liferay's source code.
Timur Magzumov, módosítva 10 év-val korábban

RE: I want to extend blogs. Where can I find the portlet source code?

New Member Bejegyzések: 3 Csatlakozás dátuma: 2013.04.12. Legújabb bejegyzések
Hi,

I was wondering if anyone can propose some sort of "guidelines" on how to locate the original sources for the hooks.
E.g., if I want to change some JSP of the portlet A, where should I look for it etc

Thanks
thumbnail
Vilmos Papp, módosítva 10 év-val korábban

RE: I want to extend blogs. Where can I find the portlet source code?

Liferay Master Bejegyzések: 529 Csatlakozás dátuma: 2010.10.21. Legújabb bejegyzések
Hi,

You can start here: http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Hook+Plugins

If you know which portlet you would like to customize you can get the jsps from {LIFERAY_SOURCE_FOLDER}/portal-web/docroot/html/portlet/{portlet-name-here}

You can checkout the portal source from GitHub: GitHub Repository
thumbnail
Raghunadh Parlapalli, módosítva 9 év-val korábban

RE: I want to extend blogs. Where can I find the portlet source code?

New Member Bejegyzések: 15 Csatlakozás dátuma: 2012.06.28. Legújabb bejegyzések
Hi,

I have a requirement to use OOTB blogs portlet and also i need to have one customized blogs portlet along with OOTB portlet in my portal.
So, As per my understanding if i do this with hook, i think all the changes will be applied commonly to all the blogs portlet wherever i user in portal.

But, I do not want to change the existing OOTB blogs portlet and have another custom blogs portlet to use all the OOTB blogs portlet functinality with small changes.

Can you suggest the possible scenarios to achieve this and on how to do this ?
thumbnail
Brian Russell, módosítva 9 év-val korábban

RE: I want to extend blogs. Where can I find the portlet source code?

Junior Member Bejegyzések: 41 Csatlakozás dátuma: 2011.10.31. Legújabb bejegyzések
Raghunadh Parlapalli:
But, I do not want to change the existing OOTB blogs portlet and have another custom blogs portlet to use all the OOTB blogs portlet functinality with small changes.


Have you been able to find a solution to this? We are trying to accomplish the same exact thing. I know it is possible to extend another plugin with a plugin, but it doesn't apply to built-in Liferay portlets: https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/creating-plugins-to-extend-plugins-liferay-portal-6-2-dev-guide-03-en
thumbnail
Vilmos Papp, módosítva 9 év-val korábban

RE: I want to extend blogs. Where can I find the portlet source code?

Liferay Master Bejegyzések: 529 Csatlakozás dátuma: 2010.10.21. Legújabb bejegyzések
Hi,

If you can scope your changes for sites, you can use application adapters: https://www.liferay.com/community/wiki/-/w
iki/Main/Application+Adapters



If it's not possible, you can create a new version of the portlet in an Ext Plugin with your customizations and deploy it, but you could have the OOTB portlet as well.

Cheers,
Vilmos