[development] Naming a module's view template

jeff at ayendesigns.com jeff at ayendesigns.com
Sun Oct 10 22:49:44 UTC 2010


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.


Jeff



More information about the development mailing list