Hi, i am trying to use the Facet Blocks display with your module.
It works, but i can't display the term name. It allways displays the tid of the term.
In the "normal" facet blocks, everything is ok.

I ve attach a screen shot with my view configuration at the moment. Is there anything i am doing wrong?

Thanks for your help,

Herve.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey’s picture

Status: Active » Needs review
FileSize
2.69 KB

The "Fields" settings aren't used for the "Facets block" display, so changing this won't have any effect.

Please see if the attached patch helps.

herve’s picture

Status: Needs review » Fixed

Thanks, i ve resolved the issue by using term name for the facet, and not the whole term object :)

drunken monkey’s picture

Status: Fixed » Needs review

As indexing term names instead of the objects is not recommended, it would still be nice to be able to fix this bug. So could you please review the patch?
And in any case, this shouldn't be marked as "fixed" as long as the bug exists.

richygecko’s picture

Had the same issue and the above patch fixed the issue for me.

herve’s picture

Status: Needs review » Fixed

I apologize drunken monkey, i was not understanding the "add entity" functionnality, in the facet configuration. I have just add my vocabulary in the entities i manage, and i add the term name in the facet. It works like a charm. Thanks !

drunken monkey’s picture

@ richygecko: Thanks for reviewing! I now committed this.

@ herve: As stated in #3, please refrain from marking issues as "fixed" as long as the underlying problem isn't resolved. Even though you now solved this differently, there will still be people who'll want this fixed in the module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.