# Summary

The Metatag module allows you to automatically provide structured metadata, aka "meta tags", about a website. Actively being ported to D8 by the current maintainers.

# Project URL

https://www.drupal.org/project/metatag

# Where is the code?

https://www.drupal.org/project/metatag (mirrored on bitbucket and github)

# Estimated completion date

November 19th.

# Dependencies

None

# Who's doing the port?

Damien McKenna, davereid, juampy, Mediacurrent, Lullabot

# What help do they need?

Contributions - code, documentation, webinars, etc.

# D8 roadmap

https://www.drupal.org/node/2563613

# Background and reference information

N/A

Comments

Kazanir created an issue. See original summary.

Kazanir’s picture

Title: [module_short_name] Module Human-Readable Name (Issue Template) » [metatag] Metatag
Kazanir’s picture

Issue summary: View changes
damienmckenna’s picture

damienmckenna’s picture

I'm hoping this will replace the need for Metatags Quick.

damienmckenna’s picture

Issue summary: View changes
Status: Needs work » Needs review
juampynr’s picture

I am working at https://github.com/Lullabot/metatag on adding global defaults plus an admin UI. Will submit a patch against 8.x-1.x soon.

juampynr’s picture

amsentner’s picture

I dont understand. How is this a beta?. There is single phone number field under configuration that does save.

  public function submitForm(array &$form, FormStateInterface $form_state) {
    drupal_set_message($this->t('Your phone number is @number', array('@number' => $form_state->getValue('phone_number'))));
  }

The above code is what happens when the configuration is saved. I recommend changing this to alpha as beta general means the features are in but could be buggy. In the case of this module, there are no features yet.

There are no other options in global configuration, content types, or pages. Tried latest beta and current dev.

Am I missing something?

EDIT: Anything I can do to help? I have not really contributed to a Drupal module so I am not very familiar with the process.

juampynr’s picture

@asent, add a Metatag field to a content type to see them. We are working on the issue that I mentioned on the admin interface to set global defaults.

damienmckenna’s picture

@asent: That settings page is a placeholder page that we/I forgot to remove before releasing the betas, but it'll be gone in beta3.

In beta2 it has entity support so you can add a "Meta tags" field to any entity bundle (i.e. vocabularies, content types, users), then be able to define default values for that bundle's entities and override them on an individual basis. Thanks to juampy (and Lullabot and Acquia) the next beta we'll have a way of controlling them at a global level, just like you can with the D7 version.

amsentner’s picture

@juampynr Thanks for your quick response. I was missing that.

@DamienMcKenna Ok, that makes more sense. When I first installed, I naturally went to global to configure that first. I was a bit confused when that is all I saw. That is great news that it is in the works for the next beta. I am looking forward to that release!!

enginpost’s picture

Are Twitter Card metatags included in the current beta? I cannot figure out how to add data for Twitter cards.

damienmckenna’s picture

@enginpost: No, they'll be in the next beta.

Benia’s picture

Hi, is there something special I need to know after I installed and enabled the module in a local, brand-new and almost-empty Drupal 8 site to which I plan to migrate and upgrade content from a neighboring local copy of an online-working D7 site via the famous Migrate-Update module?

In other words, should I configure something in the D8 site Metatag module settings to insure stable and correct migration of each node's meta title, description, and keywords from the D7 site?

Would thank you dearly for that information!

juampynr’s picture

Issue summary: View changes
juampynr’s picture

@Benosika, I don't think so.

As for how to migrate your metatags. Have a look at metatag.install, where there is a database update that creates ConfigurationEntities.

N1ckN4m3’s picture

Hi,

there is a problem with metatag and contact forms (D8).

unless contact form link is standard contact, all contact form links are broken.

example:

http://mydomain.tld/contact/feedback

=

The website encountered an unexpected error. Please try again later.

if i deactivate metatag module all is fine, but if i activate this module the error above appears (its the one and only error i found).

How can i fix it?

Regards

akalata’s picture

@N1ckN4m3, please search through the module's issue queue to see if this has already been reported. If not, make a new issue there so it gets proper attention.

This thread is just for tracking the status of the module's D8 port.

Benia’s picture

Meta tag field isn't added to CTs automatically in Drupal 8...

With much humbleness, I find it a bit strange that I need to add the Meta tag field to each content type individually... It can take some precious time for sites with many content types and it would be best, I think, to bring back the old D7 way of automatic Metatag field adding to each CT. Or at least --- Each newly generated CT...

damienmckenna’s picture

@Benia: Yeah, that's one of the debates we're having..

How about if there was a simple page that could automatically add it for you, you just select which content types, vocabularies, etc you want it to show on and it's instantly added? Lets discuss it in #2707731: Add a page for quickly adding the field to entities.

benjifisher’s picture

Status: Needs review » Fixed

The project page shows a full release, so I am updating the status to Fixed. See https://www.drupal.org/project/contrib_tracker for the meaning of issue statuses here.

damienmckenna’s picture

@benjifisher: Thanks for remembering to update this issue, I'd completely forgotten about it.

Status: Fixed » Closed (fixed)

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