Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Customize Category Facet View
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!
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!
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.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™