missing node links

Comments

Jeff Burnz’s picture

Status: Active » Postponed (maintainer needs more info)

I'm not 100% sure where in the CVS the dev version is generated from, but I assume its simple the untagged 5x branch?

http://cvs.drupal.org/viewvc.py/drupal/contributions/themes/twilight/nod...

If so I took a look and the $links is in the node template and nothing in template.php that looks like its messing with it.

What seems to be the problem - just no links printing out?

Gábor Mayer’s picture

i don't understand what cause the problem because the $links variable is empty! i will try the cvs version...

Gábor Mayer’s picture

cvs version don't work too... i'm using cck link fields for links. ofcourse it's working well with other themes.

Jeff Burnz’s picture

Title: missing node links » Not

Well CCK is something quite different, I assume you meant the $links variable, wheres as the CCK field will be printing in $content or your fields specific print statement.

I looked in this theme and you should remove this function from tempate.php:

function phptemplate_field (line 84 - 112, delete the whole thing).

The alternative is to include CCK field tpl files in your theme, as that function is doing a _phptemplate_callback looking for tpl files. I bet you have loads of watchdog errors that say something like "...a valid template was not found" or something along those lines?

Untested but I would assume this is the problem.

Jeff Burnz’s picture

Title: Not » CCK field templates not found, CCK fields not printing

Ops with the title, forget to complete