1. Drupal 7.17
2. Latest Meta Tags dev release (Nov-10)
3. Meta Tags and Meta Tags Open Graph modules enabled
4. Using Taxonomy Display (http://drupal.org/project/taxonomy_display) module to display term pages
5. I have also tested it with Bartik theme and I don't use template overwrites (http://drupal.org/node/1310780)

I have edited description and title tags for one of the vocabularies. When I open some of the terms, there isn't any tag outputted. It works after the Taxonomy Display is disabled (regular term pages).

Is it a Tax. Disp. problem or I'm missing something in the configuration?

Comments

1mundus’s picture

Project: Metatag » Taxonomy display
Issue summary: View changes

typo

damienmckenna’s picture

Project: Taxonomy display » Metatag

This is a problem stemming from the fact that you're using Taxonomy Display to create custom versions of taxonomy term pages - it isn't that you're using a module to do the display, but rather that the internal paths have changed so that the logic in Metatags no longer matches.

I suggest, for now, to use the Metatag Context submodule to handle it.

1mundus’s picture

Thank you for the explanation.

I have installed context and context submodule and am trying to set it up properly. However, it seems a bit tricky.

1. If you just use the path, it works perfectly (e. g. blogs*)

2. The first condition is not enough, because it displays these meta tags for nodes in that vocabulary too. The workaround can be to add another context that checks if it is a node of a certain type and then you overwrite the first context, but that slows the loading down and is additional context to maintain.

3. I would rather just check if it is the term page of a certain vocabulary and then assign it the necessary meta tags. Unfortunately, when I choose "Taxonomy term" condition and choose e. g. "Blog" as the vocabulary that I want to affect, nothing happens.

1mundus’s picture

Choosing the view as the context doesn't help either.

damienmckenna’s picture

Title: Not working with Views » Not working with Taxonomy Display + Views
Component: Miscellaneous » Code
Category: bug » feature
Status: Active » Postponed

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.

1mundus’s picture

Component: Code » Miscellaneous
Category: feature » bug
Status: Postponed » Active

You're right.

I ended up avoiding Taxonomy Display and using Views. If someone will want to do it too:

1. Add content view
2. Add "Content: Has taxonomy term ID (with depth)" contextual filter
3. Add the desired number of BLOCKS
4. In the contextual filter settings first set "Provide default value" to Taxonomy term ID from URL. Enable Taxonomy Term validator and choose the vocabulary for each view block that you will create
5. Add necessary fields
6. Now you have different blocks enabled for different vocabularies. However, there is still the default taxonomy term display activated. You will get rid of it by enabling Taxonomy Term view (it's a default view, you just need to enable it). That view overrides taxonomy/term/% path. If you display taxonomy term content in a block, you will probably want this view to be empty. Just add Global: Custom text field and leave it empty.

Maybe this isn't the cleanest and best way, but meta tags are now displayed normally and you use one module less, which can be good for performance and ease the maintenance.

Damien, thank you for your dedication to this module and the whole Drupal project!

damienmckenna’s picture

Status: Active » Closed (won't fix)

@1mundus: Thanks, I appreciate it :)

vasyok’s picture

#5 not work with exposed filters
Sometimes help using AJAX in views

damienmckenna’s picture

Title: Not working with Taxonomy Display + Views » Integration with Metatag
Project: Metatag » Taxonomy display
Component: Miscellaneous » Code
Status: Closed (won't fix) » Active

Lets move this over to Taxonomy Display to be fixed over there.

damienmckenna’s picture

Issue summary: View changes

Added 2 steps to reproduce

VanD’s picture

Issue summary: View changes

This is still an issue, taxonomy display will not show the settings set by the metatag module.

juggler39’s picture

I have the similar problem. The metatags 'description' and 'keywords' don't show if the handler for Term display is set to 'hidden'. If it is set to 'core', the metatags are on the page.

dgastudio’s picture

any update?

dgastudio’s picture

Category: Bug report » Feature request
Status: Active » Closed (works as designed)

fix:

1. change term display to core
2. add

function themename_preprocess_page(&$vars) {
if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2))) {
unset($vars['page']['content']['system_main']['term_heading']);
}
}

juggler39’s picture

Kervi, thank you for your solution. It works.