0

I have two entities: Entity Product and Entity Product Category. Entity Product has an entity reference field on the Entity Product Category.

Goal:

Display categories and their number on the right by facets.

What I did:

  1. I created the Product Category view mode and selected it in Entity Product, where I disabled all the fields because I don’t need to display them, because I will display the facets:

enter image description here

  1. Added the necessary fields to the previously created index and once again indexed the Entity Product:

enter image description here

  1. Created view Categories results facets which will be used as Facet source. And in Show:Rendered entity | Settings in settings selected view mode Product Category:

enter image description here

  1. Added a facet:

enter image description here

  1. I chose Categories results facets view as Facet source:

enter image description here

  1. Configured the facets:

enter image description here enter image description here

  1. Added the Categories results facets block to the Block layout:

enter image description here

But the facets are not displayed on any page.

2
  • One of the selected option is Hide facet when facet source isn't rendered. The view used as source for that facet isn't rendered when viewing the Entity Product entities.
    – apaderno
    Jul 10, 2022 at 12:53
  • @apaderno I tried unchecking this option but it didn't help. Perhaps the reason is different.
    – kniro
    Jul 10, 2022 at 17:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.