I'm aware that I can provide a template file of node-contenttype.tpl.php and page-contenttype.tpl.php, however, I'd like to have a separate template for the node list (i.e. the template for /articles instead of /articles/title).

Does Drupal allow some sort of page-contenttype-front.tpl.php template that I'm missing, or should I just do one big if() statement that checks for $node in the page template and displays something else if it's missing?

Comments

Keith Adler’s picture

You should consider using the Views module (http://drupal.org/project/views) and the styling it (http://drupal.org/node/42597 & http://support.bryght.com/news/2007/02/16/drupal-5-screencasts-theming-a...) to provide for this. You can also enable the Core Path module to make /articles the destination for your view.

ceejayoz’s picture

I'd prefer more control over presentation than Views gives me in its default output - instead, I'm using Views to collect the data and then getting its items array and constructing the display myself.

Using path to display something other than the default for /articles is a nice idea, though - thanks. That should work.

jwolf’s picture

I believe this is what you may be looking for:

Different Node Templates by Node Variables (nid, type, view)
http://chapterthreellc.com/node/69

ceejayoz’s picture

Ooooooh. Thank you!