I recently needed to override the Views' template style plugin for my fluid grid so added 'views-fluid-grid-plugin-style.tpl.php' to my theme folder.
However, when I try to rename that file as per Views' theming instructions (e.g. 'views-fluid-grid-plugin-style--page.tpl.php') I get a bunch of error messages relating to the class variables...
Notice: Undefined variable: list_class in include() (line 30 of /var/www/.../themes/footheme/templates/views-fluid-grid-plugin-style--page.tpl.php).
Notice: Undefined offset: 1 in include() (line 32 of /var/www/.../themes/footheme/templates/views-fluid-grid-plugin-style--page.tpl.php).
Note that if I leave the file named 'views-fluid-grid-plugin-style.tpl.php' then it all works fine and no errors are displayed. It's only when I try to rename the file to one of the more specific templates (as described in the Views interface) that the errors appear.
Also note that if I clear the cache, no error are displayed. But subsequent refreshes display the errors once more.
I've left the overridden template file as the original name so as not to get any errors on the site, but thought I'd mention the bug here in case anyone else comes across it and/or can find and fix the source of the issue.
Comments
Comment #1
markus_petrux commentedNot sure if this module can do anything to avoid this problem, or it's something that needs to be addressed from Views.