Closed (fixed)
Project:
FlashVideo
Version:
6.x-1.5-rc3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
25 Aug 2009 at 17:13 UTC
Updated:
15 Sep 2009 at 14:40 UTC
I use a script in the node-video.tpl.php (see code below) to display the thumbnail instead of a teaser for this node type only. Then in my "Views" I create a field with a Teaser in it. This used to work but not anymore, now the thumbnail does not show.
In "Views" the Field with the Teaser had an error message in it (which I lost unfortunately). Could it be related to a recent image cache upgrade to beta10? How do I troubleshoot? The jpg was created allright. I can see it in the downsampled folder and I can also attach it. But neither can I include it with the tag nor can I include it directly in the template like this:
if ($teaser): /* teaser */
print flashvideo_get_thumbnail($node);
.
.
.I appreciate any help
Comments
Comment #1
mirrie commentedflashvideo_get_thumbnail($node); does produce a thumbnail. I found that out by including that line in the display of the full node. so it has to do with the if ($teaser) part.
Next up how can I check if that condition with the teaser works? Please bear with me, I am new to php.
Comment #2
attheshow commentedI don't think the view would make use of your node.tpl.php file. You'll need to create a views template file that does the same thing. When you're looking at your view, click on "Theme: Information" to find the names of various template files that you might create.
-OR-
The easier solution might be to turn on the FlashVideo Views module which allows you to select the thumbnail as a field that will display in your view.
Comment #3
mirrie commentedThank you, I went for the "easier solution" and it worked well.