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.
Hey Guys,
I've been searching quite a long time to figure out how I can implement videos or images in one and the same slideshow.
I am using a content type which has the ability to upload an image. (This image is taken for the slideshow). I've now extended the node with a CCK-Field (embed media field) where I can insert a URL to e.g. a Youtube-Video. So if there is an image attached to the node - the image should appear in the Slideshow-Item and if there is a URL in the CCK-Field it should display the Embedded Video.
Is this possible with Views-Slideshow?
Comments
Comment #1
miro_dietikerYou can use node build mode with e.g. teaser mode.
Then you'll be able to handle the output using node.tpl.php file.
A custom build mode might make sense to setup the display settings for this particular output.
#935512: Provide a slideshow build mode
Comment #2
snufkin CreditAttribution: snufkin commentedyou can also write a preprocess for a field that shows either video or picture, its probably easier than writing a custom build mode.
Comment #3
Roavei CreditAttribution: Roavei commented@snufkin - could you provide some more infos about howto write this perprocess function?
Thanks :)
Comment #5
castawaybcn CreditAttribution: castawaybcn commented@Roavei, I am trying to accomplish the same thing. Did you actually find a way to do this?