Add all of the Site Validation meta tags from the D7 branch to the 8.x-1.x branch. May need to split out the meta tags into submodules after all.

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

Component: Dublin Core » Other tags
couturier’s picture

This sounds like an excellent idea to me. I've just built a new Drupal 8 site and need to validate it, so I'm looking for solutions currently. This will become more important as Drupal 8 use becomes more widespread.

jim.m’s picture

@DamienMcKenna - We wrote the Site Verification D8 module. I'm happy to continue on the path and write the validation tags for MetaTag 8.x if you'd like?

Jim

damienmckenna’s picture

@Jim.M: I'd be grateful for any help you could provide. Please check the other D8 issues (e.g. #2563623: Add the main OpenGraph meta tags to 8.x-1.x) for how I'd like this structured.

jim.m’s picture

Assigned: Unassigned » jim.m
damienmckenna’s picture

Moving this to beta6 so that beta5 can be released more quickly.

damienmckenna’s picture

jim.m’s picture

StatusFileSize
new8.63 KB

I've created a bunch of the most popular verification tags classes under "Site Validation" fieldset. Here's the patch file. I think we can add other tags by an on-demand basis. Now I'm going to add an ability to create verification files for some of the services on-the-fly (I personally prefer this method to meta tags).

I think we can add placeholders to the metatags to show data format (like UA-XXXXXXXX-X for GA for instance). What do you think about it?

matsbla’s picture

I tested #11 and seems like working great, thanks!

matsbla’s picture

I guess it should be

not:

matsbla’s picture

I guess it should be
<meta name="google-site-verification"
not:
<meta property="google-site-verification"

jim.m’s picture

StatusFileSize
new8.57 KB

matsbla, you're right, my final code review "cleaned it up". I rerolled the patch, here it is.

damienmckenna’s picture

Status: Active » Needs review

Oh that's awesome, thank you!

As a reminder, please remember to set the issue status to "needs review", that way it'll trigger the testbots, and let others know there's a file to review.

damienmckenna’s picture

StatusFileSize
new10.51 KB

I've renamed the submodule to metatag_verification, and updated the descriptions to match what's used in the D7 module.

Status: Needs review » Needs work

The last submitted patch, 17: metatag-n2563629-17.patch, failed testing.

The last submitted patch, 17: metatag-n2563629-17.patch, failed testing.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new12.21 KB

I renamed the classes so they don't have the "Sv" prefix anymore, and the tests should work now.

  • DamienMcKenna committed c4b4adf on 8.x-1.x authored by Jim.M
    Issue #2563629 by Jim.M, DamienMcKenna: Added site verification tags.
    
damienmckenna’s picture

Status: Needs review » Fixed

Committed. Thanks Jim.M!

Status: Fixed » Closed (fixed)

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

damienmckenna’s picture

Assigned: jim.m » Unassigned