By chum lee on
Hi there, new to Drupal. I'm trying to put different nodes (story and blog post) into different regions of my home page, for a custom theme that I am building. I would like for the code to behave something like:
div1 -> if page is home page -> and node type is story (published to front page) -> print $title, $content, etc
div2 -> if page is home page -> and node type is blog post (published to front page) -> print $title, $content, etc
any help would be greatly appreciated. thanks in advance!
Comments
Alternatively, you could use Panels
Hi,
I can not answer your question, but the result you appear to accomplish can also be reached by using the contributed model Panels (http://drupal.org/project/panels).
Maybe that will make your life a bit easier.
Mark
Hi Lee you can use views
Hi Lee
you can use views module. It is perfectly build for your requirements! You can achieve wahtever you are looking here.
Cheers
Thanks, guys, the views
Thanks, guys, the views module worked like a charm. I appreciate the feedback.