Active
Project:
Kaltura
Version:
6.x-1.4
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2009 at 21:52 UTC
Updated:
17 Sep 2009 at 17:23 UTC
Hello,
I have a content type that includes a Kaltura Media field. When a user creates this content they're able to upload multiple images, video and audio using the Kaltura widget. Including this field in my view displays a thumbnail for each uploaded media. I'd like to control/limit how many thumbnails are displayed. Any ideas?
Thanks!
Comments
Comment #1
j3030 commentedI found a fix, although I'm not sure it's the best way. I'm overriding the function, theme_field_kaltura_formatter_thumbnail, in my template.php.
Here's the original theme_field_kaltura_formatter_thumbnail (defined in kaltura/plugins/field_kaltura/field_kaltura.module):
And here's the orginal kaltura_get_thumbnail_display (also defined in kaltura/plugins/field_kaltura/field_kaltura.module):
So I ended up taking the contents of kaltura_get_thumbnail_display and throwing it in mytheme_field_kaltura_formatter_thumbnail, adding code to break out of a loop after it reaches a set limit.
The final result was placed in my template.php :