How can I view my teasers in <li> instead of in the default <div>? I find that changing the <div> to <li> in node.tpl.php doesn't work since <li> needs to be wrapped in a <ul> tag.

2 Answers 2


I agree you should use Views for this. You can replicate Drupal's default front page, just by enabling the default front page view that comes with views. You can use the regular View style plugins to create lists, tables, etc. Using things like Semantic Views in Drupal 6 and by configuring the styles in Views 3 you can have clean markup and have more exotic things like definition lists.

To understand how Views outputs its markup you should have a look at the templates views comes with in the themes folder, if you want to see how views outputs lists for example check out views-view-list.tpl.php.

  • Got it right the first time. I was just feeling lazy and thought there was a way to just edit the node.tpl.php. Thanks for reinforcing the thought! :-)
    – enchance
    Commented Aug 2, 2011 at 10:19

You could use the Views module to output an unordered list of teasers. You can use the HTML List display type, along with a Node: Teaser field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.