Hi
Is there a way to have multiple tokens in the same field ?
I have images either in [node:field_illustration], or in [node:field_hide], never in both at the same time.
I'd like, in the image metatag field, to have something like [node:field_illustration];[node:field_hide] ; does this work ?
Thanks

Comments

dbourrion created an issue. See original summary.

damienmckenna’s picture

Ultimately, yes you can have multiple tokens in the fields. The bigger question is, does it make sense for the individual meta tag, or would that muck things up? Image meta tags have special handling to extract the image URLs from the values, if it recognizes there being multiple items and the meta tag supports multiple value (like og:image) it will output multiple tags; if there are multiple items but the meta tag only supports one value then it will only output the first one. BTW meta tags that support multiple values will separate based upon comma, because that's what a token uses to separate multiple values.

Another thing to consider is to create multiple defaults at admin/config/search/metatags, one for each content type, thus avoiding the problem entirely.

dbourrion’s picture

Well, the comma made it
Many thanks :)
D

dbourrion’s picture

Status: Active » Fixed
damienmckenna’s picture

You're very welcome :)

Status: Fixed » Closed (fixed)

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