It seems like an oversight, but maybe I am missing something: it seems that the metatag_panels module only does token replacement, not the native panels replacement. The latter is a bit more versatile than tokens in many cases (think: views_context).

Is there a plan to add this?

Any suggestion where this should happen?

I guess somewhere in metatag_panels_ctools_render_alter?

Comments

zd123’s picture

In order for ctools substitution to occur, metatag data must be passed to ctools_context_keyword_substitute() prior to running getElement() on the metatag instance in metatag_panels_ctools_render_alter().

mariusm’s picture

Superb patch.
Please add to dev

Thanks

damienmckenna’s picture

Status: Active » Needs review

Need to review it first ;)

damienmckenna’s picture

StatusFileSize
new2.28 KB

Some small improvements.

damienmckenna’s picture

Status: Needs review » Fixed

Committed. Thanks!

  • DamienMcKenna committed 28ce2d3 on 7.x-1.x authored by zd123
    Issue #2265453 by zd123, DamienMcKenna: CTools keyword substitution for...

Status: Fixed » Closed (fixed)

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