If using Metatag module, metatags aren't being displayed in views used by taxonomy display.
See this issue #1837660: Integration with Metatag and what module's author says in comment #4
At this point I don't think Metatag should need to handle every possible scenario - if there isn't a simple & generic way of handling this using the data from entity_get_info() then the other module, i.e. Taxonomy Display, should do the integration.
¿Is he right? ¿Could Taxonomy Display solve this problem?
I've read another issues talking about views integration with Metatag, but i think this is different (at least in theory), because we don't have to set anyting, we already have metatag information to show: the metatags that would show the core term display page.
Thank you in advance.
Comments
Comment #1
codycraven commentedChanging to a feature request. I haven't looked at metatag's implementation but if my assumption is right we could support it in taxonomy_display.
Comment #2
alexp999 commentedI have written the following hook function to add to taxonomy_display.module which seems to function as expected. Still haven't got my head around writing a patch, sorry:
Comment #3
alexp999 commentedWhen this gets committed:
https://www.drupal.org/node/1783968
The code needs to be:
Comment #4
lanny heidbreder commented#2 in patch form, untested.
Comment #5
lanny heidbreder commented#3 in patch form, untested.
Comment #6
lanny heidbreder commentedReroll of #4 without the vim-tastic syntax error. This is the code from #2.
I tested it this time, and it seems to work wonderfully! Thanks, alexp999!
Comment #7
alexp999 commentedThanks for making the patches.
Comment #8
vbard commented#6 worked, thanx!
Comment #9
vbard commentedAfter rolling #26 from https://www.drupal.org/node/1783968 had to roll #6 back and re-roll #5 - metatags worked!
Comment #10
vbard commentedHi!
Seems like there is a need for another patch. The issue happens when you have taxonomy_display + facet_api + facetapi_pretty_paths. Metatags works on a term page but when you apply any of the facet filter - they don't. The problem is in Metatag's metatag_entity_view() function. There are some checks that cannot be passed with facetapi_pretty_paths's path. So I grabbed the heart of that function and repeated it in taxonomy_display - no more, no less.
Comment #11
vbard commentedWhen this gets committed:
https://www.drupal.org/node/1783968
you'll need this one
Comment #12
vbard commentedSorry, this was my first patches - not a patches actually :)
Here is correct.
Comment #13
vbard commented