Hi,

with views you can select under Theme Information the custom template file. I've copied the original views-slideshow.tpl.php to my custom views-slideshow--featured--pane-featured.tpl.php

It works after you flush the cache. But only once. If you refresh the page (F5), then you get these errors:

Notice: Undefined variable: skin in include() (line 16 of C:\Inetpub\wwwroot\123.com\sites\all\themes\andalusiah\templates\views-slideshow--featured--pane-featured.tpl.php). =>

> Notice: Undefined variable: slideshow in include() (line 24 of C:\Inetpub\wwwroot\123.com\sites\all\themes\andalusiah\templates\views-slideshow--featured--pane-featured.tpl.php). =>

The problem is that $skin and $template are no longer available in the custom tpl file. If you refresh caches one more time, again it works. But again only once - after you refresh the page again, same errors appear.

I'm showing this view as a content page within panels, but issue does not seem related to panels. It probably points to a tpl file caching issue.

Files: 
CommentFileSizeAuthor
#6 1173910-d7-1.patch10.97 KBredndahead

Comments

I found a strange solution: copied the function template_preprocess_views_slideshow to my template.php ("mytheme_preprocess_views_slideshow"). Then the problem went away.

This shouldn't be necessary, should it? Why would it work after the first page-load, but not after that?

I can confirm this whacky behaviour and the temp fix

subscribing. same issue here.

This may be a views issue. Views is what creates the theme function for that. Not sure what it may be on my side.

Apparently drupal cannot handle preprocess files in theme.inc files. I'm working on it. Pretty much have to move the preprocesses to the .module file.

Status:Active» Fixed
StatusFileSize
new10.97 KB

This patch was committed.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

redndahead, where did you find the information about the theme.inc vs .module file?

I think crell told me in irc.