I was just implementing the edit required in the new version of the metatag module in the metatag_google_plus README.txt but when doing so it occurred to me that this might not be necessary if I'm using the Schema.org module.

Is this edit necessary if I already have the schemaorg module installed and enabled?

If both are implemented are there any problems with that?

Here is what is currently produced before the metatag module update, so I'm guessing the Schema.org module already takes care of this but wanted to make sure (and that it might be helpful to note in the README.txt if so):

<!--[if gt IE 8]><!--><html lang="en" dir="ltr" prefix="og: http://ogp.me/ns# fb: http://www.facebook.com/2008/fbml content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ rdfs: http://www.w3.org/2000/01/rdf-schema# sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema# schema: http://schema.org/"><!--<![endif]-->

Thanks!

Comments

deanflory created an issue. See original summary.

DamienMcKenna’s picture

What does the 'html' part of the html.tpl.php file look like?

deanflory’s picture

I think this is what you were asking for, but this doesn't include anything automatically inserted by the schema.org module:

<!DOCTYPE html>
<!--[if lt IE 7]><html class="lt-ie9 lt-ie8 lt-ie7"<?php print $html_attributes; ?>><![endif]-->
<!--[if IE 7]><html class="lt-ie9 lt-ie8"<?php print $html_attributes; ?>><![endif]-->
<!--[if IE 8]><html class="lt-ie9"<?php print $html_attributes; ?>><![endif]-->
<!--[if gt IE 8]><!--><html<?php print $html_attributes . $rdf_namespaces; ?>><!--<![endif]-->
DamienMcKenna’s picture

Status: Active » Fixed

In that case, yes, you still should add the $schemaorg variable per the README.txt file's instructions.

deanflory’s picture

Thanks Damien! This is what I've ended-up with when using AdaptiveTheme on D7.42:

<!DOCTYPE html>
<!--[if lt IE 7]><html class="lt-ie9 lt-ie8 lt-ie7"<?php print $html_attributes; ?>><![endif]-->
<!--[if IE 7]><html class="lt-ie9 lt-ie8"<?php print $html_attributes; ?>><![endif]-->
<!--[if IE 8]><html class="lt-ie9"<?php print $html_attributes; ?>><![endif]-->
<!--[if gt IE 8]><!--><html<?php print $html_attributes . $rdf_namespaces; ?><?php print $schemaorg; ?>><!--<![endif]-->
deanflory’s picture

Now I'm getting the itemscope and itemtype tags:

<!DOCTYPE html>
<!--[if lt IE 7]><html class="lt-ie9 lt-ie8 lt-ie7" lang="en" dir="ltr"><![endif]-->
<!--[if IE 7]><html class="lt-ie9 lt-ie8" lang="en" dir="ltr"><![endif]-->
<!--[if IE 8]><html class="lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!--><html lang="en" dir="ltr" prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# book: http://ogp.me/ns/book# profile: http://ogp.me/ns/profile# video: http://ogp.me/ns/video# product: http://ogp.me/ns/product# content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ rdfs: http://www.w3.org/2000/01/rdf-schema# sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema# schema: http://schema.org/" itemscope itemtype="http://schema.org/Organization"><!--<![endif]-->
DamienMcKenna’s picture

Excellent, that's how it should be!

Status: Fixed » Closed (fixed)

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