eZ Community » Forums » Extensions » Cross class eztag facet in ezfind
expandshrink

Cross class eztag facet in ezfind

Cross class eztag facet in ezfind

Wednesday 26 June 2013 11:27:00 am - 2 replies

Hello all,

I have three classes : event, article, user. Those 3 classes have an eztag attribute called tag.

I would like to configure ezfind to create a tag facet that would be cross class.

Now I just know how to to a single class attribute facet like that :

 {set $defaultSearchFacets = array(    hash('field', 'class', 'name', 'type de contenu', 'limit', 5),    hash('field', 'event/tags', 'name', 'Les tags', 'limit', 10)    )}

Any idea about that ?

Thank you very much.

Modified on Wednesday 26 June 2013 11:27:34 am by Paul Etienney

Wednesday 26 June 2013 1:51:35 pm

Hi Paul,

this is possible by using the Solr field name instead of class/attribute notation in facet definition, something like this:

hash( 'field', 'attr_tags_lk', 'name', 'Les tags', 'limit', 10 )

One requirement is that all classes have the same attribute identifier in eZ Publish, in the above example, attribute identifier needs to be "tags".

Wednesday 26 June 2013 2:08:58 pm

Thank you ... again : )

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from