Hi,
I create content type ddblock with CCK video and use flowplayer to display video with .flv file video format. Video can display on views and standard page, but can not display on ddblock. how to override preprosess image cck with video cck?
I imported content type and views from Export_files_V1.6.zip.
Many thanks,
Comments
Comment #1
ppblaauw commentedYou can have a look at the How to make advanced slideshow with embedded video from 3rd party sites. tutorial and the comments below it.
Hope this helps you further, please let me know.
Comment #2
intibiz commentedThanks for your reply,
I use CCK video upload from my own video files and .flv format.
Content type consist of:
- title
- field_video
- field_pager_item_text
- body
I try use this code preprosess on template.php:
Ddblock still can not display video files.
Comment #3
ppblaauw commentedCan you uncomment the drupal_set_message debug lines in the content preprocess function and attach the result?
Can you attach your template.php file?
Can you send a link to your Drupal site where the ddblock slideshow is implemented.
Please provide the additional information, so I can help you better.
Comment #4
intibiz commentedI use image CCK and video CCK on content type. If video uploaded, ddblock will video display. If no video upload will use image.
This is preprosess template.php
Many thanks before ppblaauw.
Comment #5
ppblaauw commentedI had a look at the your Drupal site and the preprocess function for the slideshow.
The images with image cache are working fine, the video not.
The drupal set messages show only the content of the first slide.
Can you change the drupal_set_message line from:
to:
So also the content of the other slides is shown.
Comment #6
intibiz commentedThank for quick reply,
I've changed drupal_message now..
Please advice this code.
Comment #7
intibiz commentedIf video uploded, image cache will changed with video display.
Video will display if content type have video upload.
content type field:
- title
- field_image
- field_video
- field_pager_item_text
- body
Thanks for your advice..
Comment #8
ppblaauw commentedCan your video field contain multiple videos?
Can you set this to 1.
At my installation I use the object code in the emfield field instead of the URL.
In my code of the preprocess functions I use:
In this case:
When the normal imagefield is filled this image will be used.
When the flickr image field is filled the image from flicker will be used.
When the video field is filled (with the object) the video will be used.
In future versions of the ddblock module themed views fields will be used instead of raw data.
Then it is not needed anymore to write the code in the preprocess functions.
Hope this helps you further, please let me know.
Comment #9
intibiz commentedI only use one video upload for cck video.
I'm waiting future version.
Thanks for your advice.
Comment #10
intibiz commentedI change video preprosess work fine with manual query for theme flowplayer.
This is script code:
Thank you.
Comment #11
ppblaauw commentedThanks for posting your solution, hopefully will be helpful for other users also.
Changed issue title.
Set status to fixed.