我是Drupal的新手,想要用HTML5创建一个网站。我已经安装了最新的7.22以及Omega 3.两者都应该是HTML5,但DTD读取。
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML+RDFa 1.1//EN">
谁能告诉我哪里出错了?
谢谢
加里
答案 0 :(得分:0)
尝试关闭RDF模块。如果这不起作用,请尝试将此函数添加到template.php。
/**
* Implements hook_preprocess_html().
**/
function YOURTHEMENAME_preprocess_html(&$vars) {
$vars['doctype'] = '<!DOCTYPE html>' . "\n";
$vars['rdf'] = new stdClass;
$vars['rdf']->version = '';
$vars['rdf']->namespaces = '';
$vars['rdf']->profile = '';
// Serialize RDF Namespaces into an RDFa 1.1 prefix attribute.
if ($vars['rdf_namespaces']) {
$prefixes = array();
foreach (explode("\n ", ltrim($vars['rdf_namespaces'])) as $namespace) {
// Remove xlmns: and ending quote and fix prefix formatting.
$prefixes[] = str_replace('="', ': ', substr($namespace, 6, -1));
}
$vars['rdf']->namespaces = ' prefix="' . implode(' ', $prefixes) . '"';
}
}