I have a View called News which has about 10 different block displays in it serving various roles. I created a template for the first block (not block_1 and not the master) in order to apply some unique structure.
Though the changes are seen on all the blocks in News.
Based on the template suggestions for the block I need it to apply to, it suggests the following.
Display output: views-view.tpl.php, views-view--news.tpl.php, views-view--default.tpl.php, views-view--default.tpl.php, views-view--block.tpl.php, views-view--news--block.tpl.php
I'm using views-view--news--block.tpl.php since its the most granular of the options.
Is there another I should use?
block
is a hard coded display type ID in Views, and your desired display ID conflicts with it - Views has no natural way for you to tell it that you don’t want the standard template naming to apply in that instance, so you have to override itblock
as standard, that wasn't something you changed? In that case there must be an easier way, I'm sure a bug like that wouldn't have been left unfixed for so long. I'll have a peek at the code