我需要给每个页面一个自定义的元标题。我找到了一个模块http://drupal.org/project/page_title但我不能用它给条目指定特定的标题。
我为我的 CCK 创建了 MetaTitle 字段。然后我编辑了 html.tpl.php 如下,它没有采取行动。我以错误的方式称呼我的 cck 字段吗?:/
/sites/all/themes/zen/html.tpl.php
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" version="XHTML+RDFa 1.0" dir="<?php print $language->dir; ?>"<?php print $rdf_namespaces; ?>>
<head profile="<?php print $grddl_profile; ?>">
<?php print $head; ?>
<title><?php print $node->field_meta_title[0]['view']; ?></title>
<?php //print $head_title; I removed the line ?>
我错过了什么?感谢帮助!!!非常感谢!