I'm using the following code in my node.tpl.php file to try and present different content layouts depending on content-type for the full display of a node (not teaser, which i have customised successfully already).
My problem is this appends the information I have specified to the end of the nodes content, and doesn't actually replace it. I believe page.tpl.php is the culprit, specifically the $content variable.
I didn't use the standard way of theming at the page level as this was overriding my node teaser customisation code but I'm begining to think I've worked my way into a dead end here.
So my questions
Is there a way I can use my switch statement to determine the HTML for full nodes, with a default state to cover all non-customised nodes?
$content appears to be the major sticking point to achieving this as it pulls in the content AND my custom content appended if you leave it in - remove it and all the content is gone.
$node_type = $node->type;
switch($node_type) {
case "rin_news":
if ($page == 1):
?>
if ($sticky) { print " sticky"; }
if (!$status) { print " node-unpublished"; } ">
dfsdfsfsdffsdf
if ($picture) { print $picture; }
if ($page == 1) {
print $title
};
<?php