How to customize xtemplate.theme for nodewords?

SupaDucta - August 7, 2004 - 15:23
Project:Meta tags
Version:4.4.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I am trying to customize the xtemplate.theme to work with nodewords, no success
whatever I try.

In my template I have put this into the HEAD section:

<?php
meta name
="keywords" content="{nodewords}"
?>

In theme, I have put this:

<?php
function nodewords ($nodewords) {

$nodewords = module_invoke("nodewords", "get", $nid);
$xtemplate->template->assign("nodewords", $nodewords);
$xtemplate->template->parse("nodewords");
return
$nodewords;
}
?>

Looking at the source of the node I have assigned keywords to, the output is empty, ie. content="".

What am I doing wrong?

Using Drupal 4.4.2, the module is working, the table is neatly populated by node's data entered through administration field, but I just can't figure the way to modify the theme properly.

Would you be so kind and help me out a bit? I have tried numerous combinations, no success.

Thanks ;)

#1

SupaDucta - September 11, 2004 - 15:29

#2

Gábor Hojtsy - September 18, 2004 - 13:16
 
 

Drupal is a registered trademark of Dries Buytaert.