Is the only way to do this with the method described here? And if so, how do you get the variables for that? Or do you just print $content? It's really the $content that I want to edit. Is this possible?

Comments

userofdrupal’s picture

Generally, if $content doesn't display what you want, then in your node-(some-specific-type).tpl.php file instead of printing $content (which is the normal scenario), you *don't* print $content and instead use the $node variable to get the specific pieces of what you need and print those.

While building this, you can call print_r($node) somewhere in your template file just as a way to see all the available attributes of $node that you can use to build your template exactly how you want it. Kind of a handy development aid.