In the template suggestions for views, the default template for the views map is missing. To reproduce:

  1. create a view with an openlayers map display
  2. click on advanced / theme
  3. the style output says: "openlayers-views-map.tpl.php" (file not found in directory [openlayers module directory]/modules/openlayers_views/views/)

This is probably because the theme.inc doesn't implement a template, but just a theme hook.

CommentFileSizeAuthor
#1 theme_suggestion-2387159-1.patch1.14 KBbasvredeling

Comments

basvredeling’s picture

Status: Active » Needs work
StatusFileSize
new1.14 KB

This patch fixes the missing template file error. But somehow it seems the template is not used. The layout of the template is good and reflects the theme function output. Perhaps there is a conflict there (between the template and the theme function).

pol’s picture

This is something that I already asked to someone. I think it was dawhener, one of the maintainer of Views.

I honestly do not remember the reply... I will try to find it.

pol’s picture

basvredeling’s picture

It looks like a similar issue, but it isn't. I've disabled devel. Doesn't make any difference. OpenLayers currently doesn't have any views templates at all. So these are probably separate issues. Views is reporting correctly that the views template is missing.

pol’s picture

Check this repository, I think it's the one I made to show the problem in views: https://github.com/Polzme/test_style

Are you still able to reproduce it ?

basvredeling’s picture

Yes, the test_style plugin also reports a missing template file.

pol’s picture

Is it also doing it not only in OpenLayers ?

basvredeling’s picture

Status: Needs work » Closed (won't fix)

Yes, not only in OpenLayers. And also with devel disabled. I guess this is not an openlayers issue.
Reported back in #2042937: Display output: views-view.tpl.php (File not found, in folder ./),

basvredeling’s picture

pol’s picture

Maybe we should ask dawehner again about it. I'll see if I can ask him on IRC and report back here.