thumbnail not showing
mirrie - August 25, 2009 - 17:13
| Project: | FlashVideo |
| Version: | 6.x-1.5-rc3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | attheshow |
| Status: | closed |
Jump to:
Description
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

#1
flashvideo_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.
if ($teaser): /* teaser */print flashvideo_get_thumbnail($node);
else: /* full node */
print flashvideo_get_thumbnail($node);
print flashvideo_get_video($node, $params);
print $content;
endif;
#2
I 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.
#3
Thank you, I went for the "easier solution" and it worked well.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.