Is there any way to show a node without any blocks and header and footer? It should only show the properly formatted content of the node.

Comments

lavanyashastri’s picture

you could go to
administer->site building->blocks

click the 'list' option

you will see a list with the

Block Name region weight operations

go to the blocks you want and just disable them by selecting 'none' option that shows up when you click the expandable button under 'regions' column

Scroll below and click save

Go to your node

hope this is the answer you were looking for.

prbass’s picture

You can have a custom page.tpl.php for any internal path.

See http://drupal.org/node/190815 for more about how the template suggestions work.

For instance, you can have page-node-1.tpl.php, which will be replace the theme default node.tpl.php for the node with the internal path node/1

You'll just need to cut out the bits of the page that you don't want to display, so something like this:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">

<head>
  <title><?php print $head_title; ?></title>
  <?php print $head; ?>
  <?php print $styles; ?>
  <?php print $scripts; ?>
  
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?> </script>

</head>

        <div id="content" >
        <?php print $content; ?>
        </div> <!-- /content -->

</body>
</html>


chandrabhan’s picture

Thanks a lot folks! Thats what exactly what i was looking for.