The ability to add additional page SEO is wonderful, as implemented by #1269396: Smart Paging - Additional Page SEO Optimization. However it does not work well when using the Metatag module.

When the node has default token-based meta tags set, additional page SEO does not seem to overwrite it. The data from Metatags module always takes precedence. It would be nice to detect this and give highest priority to the page SEO put via Smart paging module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arpeggio’s picture

Category: bug » feature

Hi, thank you for reporting and good suggestion. I'll try work on this Metatag module integration on my free time. Of course, patches are always welcome. Thank you.

marcelovani’s picture

Status: Active » Needs review
FileSize
2.84 KB

This patch will add compatibility with Metatag module.
It will check if the module exists and store the data statically.
Then, I implemented a Metatag hook that will allow overriding the tags.
I have tested and now I don't see the tags in duplication any more.

marcelovani’s picture

I just realised that the tokens were not being rendered.

arpeggio’s picture

Status: Needs review » Fixed

Hi, I have already pushed your patch. Thank you for sharing your patch.

Status: Fixed » Closed (fixed)

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