Here's what I am trying to do:
I need to have a way to display only the content in a node without any of the Drupal adornment. All I want is the styles to be inserted, and the content itself.
The reason I am doing this is I am setting up a portfolio web site that contains examples of work. Each clip will be displayed in a lightbox2 popup. A lot of the clips were authored in Drupal.
I don't want the site title, menus, and all of that garbage to show inside the lightbox. Just the content.
I did the following, which seems to be a non core files hacking way of doing things:
I created a new content type, called "barepage". I copied some content into barepage.
I created a new content specific template file for barepage: node-barepage.tpl.php.
Just for testing, here is what is inside this file (I commented out the actual content):
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"> <?php if (!$page): ?><div class="list-node"><?php endif; ?> <div class="content"> <?php /* print $content; */ ?> </div> <?php if (!$page): ?></div><?php endif; ?> </div> <!-- /.node -->
All of the standard Drupal stuff displays: the page header, the primary navigation links, the node title inside the page, and the page footer. But as expected, the content is empty.
of course, if I uncomment $content, the page displays like a standard "Page" content type.
What in the heck do I override to eliminate all of this stuff and just display the content? I'm trying to avoid hacking the template's core files or the Drupal core.
This is with Drupal 6.2, and the Zen theme with the CTI_Flex subtheme.