RE: Customize Category Facet View

thumbnail
Diego Ollero, modified 6 Years ago. New Member Post: 1 Join Date: 11/6/11 Recent Posts
Hello everybody!

I want customize category facets portlet. I want group categories by vocabulary. Per example: 

Vocabulary 1
Category 1
Category 2

Vocabulary 2
Category 3
Category 4

I have tried to create a module fragment for modifying this file: modules\apps\portal-search\portal-search-web\src\main\resources\META-INF\resources\category\facet\view.jsp. But this file uses "AssetCategoriesSearchFacetDisplayContext" and "AssetCategoriesSearchFacetTermDisplayContext" classes. These classes are in "com.liferay.portal.search.web" module but this module doesn't export package class.

Also, I have tried create a module with filter (https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-0/jsp-overrides-using-portlet-filters) but I think that this soluction is hard code.

Any suggestions?

Thanks!

Regards!
thumbnail
Mayur Patel, modified 5 Years ago. New Member Post: 1 Join Date: 11/11/19 Recent Posts
Hi Diego, I hope you are doing well.We have a similar requirement to customize category facet. Could you please suggest the solution which you wrote for the above approach.Thank you.