stef
stef

Reputation: 27749

Drupal: theming category pages

On a page like http://localhost/sitename/?q=category/tags/tag1 I've got a layout that's decided by page.tpl.php and then some more fine grained .tpl.php files.

For blogs I'm using page-blogs.tpl.php, for events I have events.tpl.php etc. How can I get a similar page just for the category url's? The reason is that this page.tpl.php is also used for other pages than the categories and I'd rather not put all kind of messy if/else in page.tpl.php

page-category.tpl.php doesn't seem to work.

Any ideas?

Thanks, Stef

Upvotes: 0

Views: 843

Answers (2)

tchaymore
tchaymore

Reputation: 11

Second @googletorp -- be careful with devel module as it has wrecked my site's layout in the past.

Upvotes: 1

Jeremy French
Jeremy French

Reputation: 12157

If you use the theamer part of the devel module, that can show you the candidate templates used. That will give you an idea of what templates to use to override any part of your site.

Upvotes: 2

Related Questions