Metatag tokens for Context variables were not being substituted for the correct value. e.g. %movie:title

This patch substitutes matching tokens with the Context variable.

Comments

infinet’s picture

Patch attached

infinet’s picture

Patch attached

infinet’s picture

infinet’s picture

Status: Active » Needs review
infinet’s picture

Removed unnecessary add_slashes()

damienmckenna’s picture

Project: Meta tags: Panels » Metatag
Component: Code » Panels integration

Please note that the separate Metatag Panels module has been deprecated in favor of the submodule that's bundled with Metatag.

MatthewHager’s picture

I've rolled a patch against latest dev in the submodule that is included with Metatag.

MatthewHager’s picture

New patch. Previous patch only worked if substitution happened at the beginning of the string.

damienmckenna’s picture

Status: Needs review » Fixed

Committed. Thanks!

  • DamienMcKenna committed aa7637b on 7.x-1.x authored by infinet
    Issue #2408211 by infinet, MatthewHager: Context substitution added to...

Status: Fixed » Closed (fixed)

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