Using xTemplate, I want to take more control of display for the image.module. I copied all functions and settings for "node" within the template files, and created node_image. I created all necessary classes in the CSS file for .node_image, .node_image .title, etc.. Everything works fine, but for some reason the image is missing now. It's as if there is no content passed. Why would this be if I just recreated "node" under "node_image"? Below is a copy of the node function in xTemplate.theme, with a few changes so it will call node_image in xTemplate.xtmpl.



Code from xTemplate.theme:
--------------------------
function node_image($node, $main = 0) {

$this->template->assign(array(
"link" => url("node/view/$node->nid"),
"title" => ucfirst($node->title),
"author" => format_name($node),
"date" => format_date($node->created),
"content" => ($main && $node->teaser) ? $node->teaser : $node->body));

if (module_exist("taxonomy") && ($taxonomy = taxonomy_link("taxonomy terms", $node))) {
$this->template->assign("taxonomy", $this->links($taxonomy));
}
else {
$this->template->assign("taxonomy", "");
}

if ($links = link_node($node, $main)) {
$this->template->assign("links", $this->links($links));
}
else {
$this->template->assign("links", "");
}

$this->template->parse("node_image");
print $this->template->text("node_image");
$this->template->reset("node_image");
}
------------------------------
I can't show the code from xTemplate.xtmpl because it gets parsed but it is identitical to "BEGIN: node"

thank you.. Any thoughts would be helpful.