Is there something I'm missing:

I install nodeword, the table is in the database, and the "Use the teaser of the page if the meta description is not set." checkbox is selected - but when I view source on the page there is no meta description or anything.

Thanks. :)

Comments

Caleb G2’s picture

I've been working with this more and it comes down to that I cna't any meta tags to show up. Everything is enabled as far as I know.

One thing I was wondering - are there extra issues involved if one is using an xtemplate?

Caleb G2’s picture

Title: "Use the teaser of the page if the meta description is not set." » How to get to work with xtemplate...

I've figured out that there's definitely an issue with trying to get nodewords to work with the xtemplate, because the descriptions show up if I enable a php template...

Sound some infor from people talking about installing node words on 4.5 but that doesn't seem to apply to the 4.7 version. Any clues or tips on what I should add and where?

Caleb G2’s picture

Tried putting this in my xtemplate engine in the xtemplate_regions function:

'nodewords' => (module_invoke(nodewords_get('node', $node->nid))),

...along with this in the xtemplate theme itself:

<META NAME="Description" CONTENT="{nodewords}" />

Guess that's it for me for now. Can't figure it out after trying for hours...

Robrecht Jacques’s picture

You will need to include {head} in the HTML HEAD section of your xtemplate. For example:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>{head_title}</title>
  {head}
  <style type="text/css" media="all">@import "{directory}/xtemplate.css";</style>
</head>

<body bgcolor="#ffffff" {onload_attributes}>

The important part is {head}.

Does this help? I will add some documentation about this (and about phptemplate which need a similar print $head;) to the README.txt if that solved your issue.

Robrecht Jacques’s picture

Status: Active » Closed (fixed)

No feedback. Added some documentation to the README.txt. Closing this issue.

Caleb G2’s picture

Status: Closed (fixed) » Active

Sorry to take so long to get back to this. I've update my xtemplates to the phptemplate. It wasn't half as bad doing that I thought it would be. :)

Here's some info for how to do this for anyone wanting to know.
http://drupal.org/node/22019

Xtemplate is basically dead now since it is not being supported by Drupal.org - so anyone using it is going to find themselves consistently having to figure out their own problems....

Robrecht Jacques’s picture

Status: Active » Fixed

The README.txt now explains what you need to do to let the meta tags appear in your theme (explained for xtemplate, phptemplate and plain php themes). PHPTemplate is indeed the way forward.

Closing this issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)