Hi all
Im trying to theme my first drupal project, and i run into a problem. Ive added the blogs module and when i goto the frontpage it lists all the blog posts.
The items on this list is generated with the node--blog.tpl.php, in there i can see the variable view_mode to see if im in listing (teaser) or full page view. This is cool but i like to control how my listing content is generated? for example if i wanted to put a headline before all the blog posts how would i do that (something like this)
HEADLINE
- BLOG ITEM 1
- BLOG ITEM 2
- BLOG ITEM 3
I cant add it to the node--blog.tpl.php because then it would appear for all items. so im looking for a way to target the listing page something like (node--blog--listing.tpl.php)
I tried asking on IRC but didnt get any answers, i think its a quite simple problem i have but cant find any infomation about it.
Comments
You could use views. It
You could use views. It comes with a view you can enable to replace the default front page listing. With this approach you can give the view a title such as "headline". Note with this approach you will need to edit the site settings to set the default front page so it uses the path for the view.