These modules are touch points and the issue may be with them and not here. Metatag could possibly clean or ignore those characters?
- taxonomy_display
- term_reference_tree
- taxonomy_menu

Comments

crutch’s picture

example: <meta name="keywords" content="Education, -Micropipette, -Pipetting, -Practice, -Simulate, -Technique, Organization, -Learning Solutions Team, -NCBioNetwork, Products, -Interactive eLearning Tools" />

damienmckenna’s picture

Category: task » support

What token(s) are you using to get the above output? Do the actual terms in question have dashes in front of them? What happens if you have a hierarchy three levels deep, does it add two dashes?

crutch’s picture

Status: Active » Closed (works as designed)

Hi Damien, I know you are working hard on this module. Thanks for your efforts.

Your response has corrected the issue :)

(bonk, smack myself in head)

I was using token [node:field-categories]

I am now using token [node:field_categories]

which corrected it. Thanks!

damienmckenna’s picture

Component: Code » Documentation
Category: support » task
Status: Closed (works as designed) » Active

Glad you got it working :)

Lets turn this into a documentation task.

crutch’s picture

How to use taxonomy for keywords in the meta tag module

Create a new vocabulary or use a the existing vocabulary "Tags". Populate the vocabulary with terms or in the case of free tagging, the vocabulary will get populated by the terms the user enters while publishing a node. In other words, terms may be populated by freetagging or in a more controlled way by an administrator depending on the desired method. [linkto: how to build and manage taxonomies]

Edit a content type and add a term reference field and select the desired widget. The vocabulary may contain multiple terms and nested terms, or in the case of freetagging, none at the start.

In the administration menu visit - Configuration/Search and metadata/Meta tags

At this point either "Override" (?unsure, have not overridden one yet?) an existing or "Add a meta tag default"

At the bottom, above the Save button, click "Browse available tokens"

Expand Nodes

Scroll down to the Vocabulary Name "Tags" or whatever the vocabulary is named, but we are assuming "tags"

There will be two options [node:field_tags] and [node:field-tags]

Add [node:field_tags] token to the Keywords field

This will insert a proper comma separated list of terms in that vocabulary into the keywords meta