Forums de discussion

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

Jianbin LIN, modifié il y a 12 années.

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

New Member Publications: 10 Date d'inscription: 24/12/11 Publications récentes
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, modifié il y a 12 années.

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

Junior Member Publications: 29 Date d'inscription: 25/02/11 Publications récentes
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, modifié il y a 12 années.

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

New Member Publications: 10 Date d'inscription: 24/12/11 Publications récentes
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, modifié il y a 12 années.

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

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
It's here:

http://svn.liferay.com/repos/public/portal/trunk/portal-impl/src/com/liferay/portlet/blogs/
Jianbin LIN, modifié il y a 12 années.

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

New Member Publications: 10 Date d'inscription: 24/12/11 Publications récentes
Thanks a lot.
thumbnail
Hitoshi Ozawa, modifié il y a 12 années.

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

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
FYI, extend blog by creating hook or ext plugin instead of directly modifying Liferay's source code.
Timur Magzumov, modifié il y a 10 années.

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

New Member Publications: 3 Date d'inscription: 12/04/13 Publications récentes
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, modifié il y a 10 années.

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

Liferay Master Publications: 529 Date d'inscription: 21/10/10 Publications récentes
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, modifié il y a 9 années.

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

New Member Publications: 15 Date d'inscription: 28/06/12 Publications récentes
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, modifié il y a 9 années.

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

Junior Member Publications: 41 Date d'inscription: 31/10/11 Publications récentes
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, modifié il y a 9 années.

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

Liferay Master Publications: 529 Date d'inscription: 21/10/10 Publications récentes
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