I'm pretty new to D7 and I'm currently working on a very stripped down theme to be able to show the pages and nodes in a totally different context (Facebook app). This means I've been messing around with template overriding quite a bit, basically deleting everything but the render($content) and so on.

In my node.tpl.php (or actually node--blog_entry.tpl.php), I'm currently styling each field separately by reaching them through their field name in the $node variable. This works fine and it gives me nice markup, but the path to each field ends up like $field_blog_entry_text["und"][0]["value"] which I'm guessing is ugly and far from ok. So, I thought I'd look into overriding with the field.tpl.php instead, but I can't get that far.

It seems I've lost the possibility to render the node via the render() function in my node template file. When using render($node), I get "Undefined variable: hide_site_name" and "Recoverable fatal error: Object of class stdClass could not be converted to string in include()".

And, the big thing, the $content variable doesn't seem to hold any usefull data and cannot be rendered.

This is strange, cause the original node.tpl.php uses "print render($content)" without a problem.

Is it possible that I've done too much stripping of the original tpl-files? On the other hand, my initial solution works fine as long as I ignore the ugly path as seen above. So, it's correctly done to some extent.

What should I do?

Thanks!

/Fredrik, Sweden