0

I was wondering if it is possible to bulk update the meta tags for a particular content type? I have set the default to this: [node:field_description]. But all of the content is in the site. I'd prefer to not go through every node to paste that in the Meta tags Description field.

Is there a bulk operation to put that placeholder token into all the nodes of a particular content type?

Using this module: https://drupal.org/project/metatag The Metatag module on Drupal 7.

3
  • 1
    What meta tag module are you using? And what Drupal version?
    – Steven
    Commented Sep 20, 2013 at 15:14
  • Ah sorry! This one: drupal.org/project/metatag The Metatag module.
    – 2bsharpdev
    Commented Sep 20, 2013 at 15:18
  • 1
    Hello. Please add important things directly to a question. This is not a discussion forum, comments may disappear without notice.
    – Mołot
    Commented Sep 20, 2013 at 15:22

2 Answers 2

1

You may use combination of Metatag, Views and Editable Fileds.

  • Configure node types to use own fields for meta tags like
    keywords, description, abstract, etc. and create it. use Field
    Permission to restrict access to this fields.
  • Configure Metatag to use newly added fields for filling metatags
    on Metatag admin page or node type page.
  • Create view with table display, add metatag-fields. Choose
    formatter "Editable" on each field settings.
  • Set path for this view like admin/config/search/metatags/massedit. Save view and now you can mass edit any fields.

Also you can try Editable Views module.

0

Sadly there does not seem to be a way to bulk update the meta tags without some database or PHP work.

You're best bet would be to look at the structure in metatags table, and use PHP to join it with the node table on the type you want and manually update it using the database & serialize to put it back together. You may want to copy an already done serialized array from the database so you replicate the content.

But that may not be the best idea incase some have special parameters or something.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.