3

Block template suggestions in D7

http://drupal.org

I'm stuck with something that seems like it should be simple, so I'm probably just not getting something here. Hopefully it is simple.

I have a block, generated by a view, and I wish to override some of the templates involved. All the views templates are overriding just fine -- but I also wish to override the block.tpl.php template that's wrapping the whole thing.

If I copy block.tpl.php into my theme directory, and modify the file, it correctly modifies all the blocks. However, I can't seem to hit on the proper name for the file to get it to override just the block I want it to.

The block edit link in the blocks admin page is:
http://localhost.dicksb/drupal7/#overlay=admin/structure/block/manage/vi...

From this, I figure the block template should be named:
block--views-features-features.tpl.php

I have tried it with both single and double hyphens after "block". It does not override. (I have flushed the cache.)

I thought I would try a system block, in case it was something going on with Views (though that seemed unlikely):
block--system-powered-by.tpl.php

That didn't work, either.

The theme developer's module doesn't seem to be working yet in D7, so I can't get a list of possible template names that way, either.

Anyone know what I'm doing wrong here? Thanks!

Read »
Created by Dplanet 1 year 37 weeks ago
Category: Theming   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for Block template suggestions in D7

Recent comments