7956 Posts in 1394 Topics by 945 members
|Go to End|
16 April 2011 at 7:45am
Not sure how or why this is happening, but for a gallery-style page of videos using the VideoPopup method (tested with others, $Player, etc), the thumbnails are the same. Viewing the source of output page shows that they reference the same .jpg for the thumb.
Here's what information I 'think' you need:
Running latest DataObjectManager (Build Date: 2011-04-01)
class VideoPage extends Page
static $has_many = array (
'Videos' => 'Video'
public function getCMSFields()
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Videos", new FileDataObjectManager(
array('Title' => 'Title', 'Description' => 'Description'),
class VideoPage_Controller extends Page_Controller
class Video extends DataObject
static $db = array (
'Title' => 'Varchar(100)',
'Description' => 'Text'
static $has_one = array (
// Make sure this comes first
'VideoPage' => 'VideoPage',
'Video' => 'FLV'
<% control Videos %>
<div class="resource" style="padding: 0 6px 0 25px; width:200px;">
<% control Video %>
<% end_control %>
<% end_control %>
In this case the Titles are different, the Descriptions are different and once clicked, the video that plays is different (all good and expected) -- just the thumbnail is the same across the board.
The kicker: In assets/video_thumbnails/ all the files are created properly, however the images on the parsed page are pointing to the _resampled directory, and pulling the same-named file, in this case 'croppedimage260152-.jpg' ...
It appears that the re-sampling process is truncating the file-names to the same name, so the last video file I upload gets turned into the thumbnail that they all end up using.
Bug? File-naming issues?
Any thoughts on the matter would be great.
19 April 2011 at 5:17am
20 April 2011 at 2:16am
11 May 2011 at 12:04am
Gallery doesn't even work for me. Just causes an Error 500 on the server.
|Go to Top|