For starters, I'm a drupal N00b. That aside, I created a drupal site with a custom front page, etc. Now I'm going in to add my content. I installed CCK and created a new type of content called "Welcome Message" with machine code type "welcome". Basically this will serve as the welcome message on the front page.
Now I am trying to figure out how to display this welcome message on my site, using some php to insert in between some divs in my page-front.tpl.php
I've read a bit on views but they completely confuse me. Is there a way to create a new block, and inside that block will be my welcome message and then use some php to put that block anywhere I want on my front page? Hopefully you know what I'm trying to do. Thanks!!!!
Comments
Here is a code snipit you
Here is a code snipit you can use to print out the most recently-generated node of type "welcome". You can put this in your page-front.tpl.php file if you'd like, or anywhere else: