[development] Naming a module's view template

jeff at ayendesigns.com jeff at ayendesigns.com
Mon Oct 11 03:34:49 UTC 2010

Nope. Also tried my_module-views-view-table--my-view--page-1.tpl.php 
with no success. I'll continue poking around looking at api changes, 
issues, etc.

On 10/10/2010 06:49 PM, jeff at ayendesigns.com wrote:
> Checking to make sure I'm not having a 'moment' and forgetting 
> something. This regards Views in D7, but I don't think this has 
> changed since D6.
> I have my_module, and it is to have a file that in a non-module 
> environment would be views-view-table--my-view--page-1.tpl.php
> In my_module/theme I created 
> my_module-view-table--my-view--page-1.tpl.php
> In my_module.info I have files[] = 
> theme/my_module-view-table--my-view--page-1.tpl.php
> The view displays with is table, but no amount of cache clearing seems 
> to get this template file recognized.

More information about the development mailing list