Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created a view to show the latest video added. I icluded the title and the video field.
Everything works but I am unable to customize the size of the video for the view block.
How can I customize the video, similar to how I customize the size of images using image cache?
Comments
Comment #1
doors CreditAttribution: doors commentedCan someone please answer!
Comment #2
doors CreditAttribution: doors commentedI got the file to play by putting the file name within the swf function.
But how do I get the filename automatically?
The following is the default theme and I used print_r() to look through the variables and objects that this theme supplies but none of them have the filename of the flash file included:
print $output;
Comment #3
AlexanderPop CreditAttribution: AlexanderPop commentedJust create a text field in CCK for your content type. Not a file field. Then write the link as SWF input code..
swf file="yourfile.swf" params="height=320&&width=240"
Using the default text format option in views..
Comment #4
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedThis is easy with the new Views integration and profiles (#581470: Playlist option in file handlers). Create a profile that has the player you want in the size you want. Then create a view to pull through the file(s) that you want, set the style as SWF Tools, and choose the profile that you made to handle the results.
Hey presto, instant block or page!