Im a newb when it comes to drupal and need some help with a custom front page.

I have the front page module installed and would like to pull content from specific nodes into it.
what code snippets do i need to use to make this happen?

for instance

   print node_page_default();

pulls up the default node, how would i pull in just the content from, for example node/9 on my site?

any clarification is appreciated.

Comments

cog.rusty’s picture

Probably http://api.drupal.org/api/function/node_page_view/6

Something like

$node = node_load('9');   
print node_page_view($node);
rood’s picture

you are my hero :)
thanks a lot.

rood’s picture

Another question, if i place

$node = node_load('1');  
print node_page_view($node);	
	

in between div tags it wont show up, however it will if i place in the body tag, but before a div tag it will.

cog.rusty’s picture

Sorry, I don't understand. Div tags? Where and how?

eli03’s picture

probably a css issue on the div tag? there should be no problem adding the code in between the div tag.
----------
My Drupal site: Philippines Travel - Come and Visit the beautiful Philippine Paradise!

by Busby SEO Challenge

rood’s picture

here is my page...

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php print $head_title ?></title>
        <link href="ktmfh/stylesheet.css" rel="stylesheet" type="text/css" />
        
    <script language="javascript">
        function load(iframe1URL)
        {   
        parent.FRAME1.location.href=iframe1URL
        }
    </script>
 
    </head>
    <body>
    <center>

        <!-- content div -->
        <div id="wrapper">
           
           <!-- frame div -->
           <div id="content"><iframe id="iframe" name="FRAME1" src="ktmfh/home.php" width="419" height="500" frameborder="1" scrolling=yes;>
           	<?php
              $node = node_load('8');  
              print node_page_view($node);
            ?>
           </iframe>
           </div>
           
           <!-- navigation div -->
           <div id="navcontainer">
           <ul>
           <li id="about"><a href="javascript:load('ktmfh/about.php')"><img src="ktmfh/Aboutbutton.jpg" alt="About Us" /></a></li>
           <li id="ministries"><a href="javascript:load('ktmfh/ministries.php')"><img src="ktmfh/ministriesbutton.jpg" alt="Ministries"  /></a></li>
           <li id="watch"><a href="javascript:load('ktmfh/watch-listen.php')"><img src="ktmfh/watch-listenbutton.jpg" alt="Watch" /></a></li>
           <li id="events"><a href="javascript:load('ktmfh/events-calendar.php')"><img src="ktmfh/events-calendarbutton.jpg" alt="Events" /></a></li>
           <li id="contact"><a href="javascript:load('ktmfh/contact-directions.php')"><img src="ktmfh/contact-directionsbutton.jpg" alt="Contact" /></a></li>
           </ul>
           </div> 
           
           <div id="footer">
           <a href="http://ktmfh.org/?q=node/9">Key to my Father's House Church, share media and stories with others!</a>
           </div>
        </div>
    </center>
    </body>
    </html>

here is my css ...


#iframe
{
	position:relative;
	left:15px;
	top:15px;
	background-image:none;
	border-color:Black;
}

as you can see im trying to get the content to be displayed in an iframe if at all possible..
am i missing something or need to add something to my stylesheet?