Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49204

Region Template Suggestion for Content Type

$
0
0

Hi everyone - first post. Very new to drupal, starting out with Drupal 7. I've gotten an intro to theming and template suggestions here: http://pingv.com/blog/a-peek-at-drupal-7-theme-system-changes but I've run into problems attempting to create a template override for the content region. I want to override the region.tpl.php file, but only for a specific content type.

I have a content type "Client" that has a page view that displays html in the content region. Now, I can copy the core region.tpl.php file into my theme folder and rename it region--content.tpl.php, but that would override the region template for everything under the content region. I would like to restrict it to just the Client content type. I've tried region--content--client.tpl.php, but that doesn't work. I've also tried naming the file by path, like: region--content--client-detail.tpl.php (since I was able to override html.tpl.php and page.tpl.php by naming them with the path). Neither of those suggestions seems to work.

Is there a naming convention for the region template file, or will I have to learn about preprocess?


Viewing all articles
Browse latest Browse all 49204

Trending Articles