RE: What is the way to customize internal package classes?

thumbnail
Kailash Yadav, modified 6 Years ago. Regular Member Posts: 211 Join Date: 10/18/11 Recent Posts

Hello, we need to customize UI (sorting options) of Asset Browser Web and Journal Web modules. In Liferay 7.x, these option moved in Display Context classes. What is best way to cusomize these internal package classes like : 

JournalDisplayContext.java

AssetBrowserDisplayContext.java

 

Thanks in Advance :)

thumbnail
Sushil Patidar, modified 6 Years ago. Expert Posts: 467 Join Date: 10/31/11 Recent Posts

Hi ,

 

Check the link and below 

https://github.com/liferay/liferay-portal/blob/65059440dfaf2b8b365a20f99e83e4cdb15478aa/modules/apps/document-library-google-docs/document-library-google-docs/src/main/java/com/liferay/document/library/google/docs/internal/display/context/GoogleDocsDLDisplayContextFactory.java

 

I think it should help.

 

Regards

Sushil

thumbnail
Abhishek Jain, modified 6 Years ago. Regular Member Posts: 226 Join Date: 8/20/16 Recent Posts
Hi 
Kailash,

Please refer the following link for extending the class which is not the Component...

https://community.liferay.com/blogs/-/blogs/extending-liferay-osgi-modules
 

thumbnail
Kailash Yadav, modified 6 Years ago. Regular Member Posts: 211 Join Date: 10/18/11 Recent Posts
Thanks all. I think this (https://community.liferay.com/en_GB/blogs/-/blogs/fixing-module-package-access-modifiers ) blog is more usefull for me as all are internal package. Thanks Nisarg for quick help :)