Hello fellow Drupallers!

I am building a custom theme for a customer's site, and I am planning to let my customer administer all that is text related. For example I have designed an area at the footer that has his contact information (one line of text). I have created a div inside the footer in page.tpl.php that will contain this dynamic text.
The question is, how can I implement this dynamic text?
I thought of creating a new content type with CCK that has only a title, then create a new node of this new content type that will contain the text and display the teaser of this new content node only in the div inside the footer. My problem is, how I tell to $content ( the main content block ) not to output nodes of this new content type, and then how can I tell the footer to spit out nodes of the new content type?
Or is there a better approach?
Thanks for any help!

Comments

nevets’s picture

I would make the area where you want this text a region where blocks can be placed. Then I would create a custom block and place it in that region. I would then theme it to hide the title so only the text (body) of the block shows.

chrisroditis’s picture

Thanks nevets!
I think that is the easiest way out!
What would give me more flexibility though would be to output a specific node inside this new block. I know it is horribly simple but...how can it be done?

A healthy disregard for the impossible.

nevets’s picture

In the block for the body add something like

$nid = 1;  // Change this to the node id you want
$node = node_load($nid);
// Now you have some choices depending on what you want
// Some examples are

print node_view($node);   // Print the whole node, title, body and all.  There are optional arguments to node_view

print $node->title;   // Print just the title

print check_output($node->body, $node->format);   // Print the body using the approriate filter
chrisroditis’s picture

Total BLISS!!!
Thank you nevets, thank you!

A healthy disregard for the impossible.