How to make a view.php

Permalink 2 users found helpful
heres how to easily make a view.php that will load all your content easily. copy all your default.php to your view.php. then overwrite all the page content- as in main and sidebar, not site name- with
<div id="central" class="no-sidebar">
      <div id="body">   
         <?php 
         print $innerContent;
         ?>
      </div>
      <div class="spacer">&nbsp;</div>      
   </div>

12345j
View Replies:
Mnkras replied on at Permalink Reply
Mnkras
err, you just need the
<?php
print $innerContent;
?>


and you only want to stick it in the template once
NBardales replied on at Permalink Reply
NBardales
You do need to add <div> otherwise, it will display a really ugly, non-styled webpage. Thanks 12345j!