When I try to look at the theme information in the views interface with the vews tree style selected I get an error for the style output:

views-tree.tpl.php (File not found, in folder sites/site_name/modules/contrib/views_tree/), views-tree--category-menus.tpl.php, views-tree--default.tpl.php, views-tree--default.tpl.php, views-tree--block.tpl.php, views-tree--category-menus--block.tpl.php

Comments

cobadger’s picture

Subscribing. I have the same error; need to customize the output template for my use case.

off’s picture

Same problem

JMM75’s picture

Same issue here as well. Any word on a correction for this?

geerlingguy’s picture

Version: 7.x-2.0 » 7.x-2.x-dev

Technically, this module doesn't define any templates through hook_theme(), but maybe views requires one for the root-level views tree display? If someone wants to look into that, that would be very helpful. The module should still work normally, even with this warning.

DrCord’s picture

I get this error too. It would be good to at least know what file it is falling back on and using, this makes it difficult to theme the view...The module still works, but this is worth resolving, please.

acrosman’s picture

Status: Active » Closed (works as designed)

Took some time to poke around at this again today. To control the markup you'll need to override theme_views_tree() and/or theme_views_tree_inner() from views_tree.module. There is also a reference to a long ago closed bug in Views on D6 about a similar issue (addressed 7 years ago): http://drupal.org/node/355919

So the file isn't missing, it doesn't make sense to use one. If there is a bug here it's more that the views interface doesn't make it clear when a style plug-in is using a function instead of a template.