I try to have images and videos and maybe other stuff in one ddblock. To get to know the functionality of ddblock, I already made all tutorials you have on ddblock.myalbums.biz.
An advanced ddblock slideshow with images works without any problem. But as I added a new ddblock with embedded videos, following the tutorial, the videos don't show up, I have the grey-box-problem. I deleted then all stuff connected with the first ddblock (which I made only for containing images), so the two blocks don't interact, whyever. Well, that did not help.
Then I tried to have videos and images in the same block, so I created another block following the advanced slideshow tutorial. Additionally, I added in views and cck another field to embed videos and made the image field as well as the video field not to be required. The idea is, that one can choose later to take either a video or an image. It was just a try, not expecting to work at all, but I found out that now the images work, but the videos don't. I think, i am not far away from that thing working, that's why I am mentionig it. It seems to me as there is just a little thing to be changed in the preprocess functions?
I haven't changed the preprocess functions so far, except of inserting the theme name. Further, I have deleted all the other tries of ddblocks, their views and the connected cck-Fields. So I think we can handle it as if I installed an advanced slideshow for the first time.
I am sorry if I have overseen an issue or a Faq where exactly that was described, but I am trying to get this thing work for a week now and I am quite annoyed, reading the whole issues and tuts over and over again.
I hope you can help me.
Comments
Comment #1
airen2011 commentedCan you send your template.php file and the result of the drupal_set_message debug lines when you uncomment them in the preprocess functions, so I can help you better.
A link to the Internet site would also be helpful.
Comment #2
NelsonEC commentedOkay, I thought you don't need it as the template is the same as the standard thing. Well, here it is:
The result of the uncommented lines is:
The site is running only locally, so I can't give you a link yet.
Comment #3
ppblaauw commentedI can not see the content of your embedded video fields because the debug lines show only the first slide. When your slides are in random order can you reload the page till a slide with data in the embedded video field is show and attach these results.
The code to add in the preprocess functions is probably like below:
For the slide add the following code to the content preprocess function:
for the pager preprocess function
This is directly copied from the code provided with the embedded video tutorial.
I changed the fieldnames so they are according to the fieldnames you use.
Hope this helps you further, please let me know.
Comment #4
NelsonEC commentedCan you tell me exactly where to put these between? If I try to put it in different regions it either happens nothing or the whole site is destroyed.
I changed the order of the Block Content, so the following debug lines should be more informative for you:
Thank you for the quick answer!
Comment #5
ppblaauw commentedYou can put the code directly after the if statement to add an image.
Don't insert the <?php and ?> (that is just for highlighting code)
Looks like you don't use youtube video's but vimeo as the provider. Each provider has different ways of handling video's. I only looked at youtube video's in the embedded media field module to use video's from youtube with the ddblock module.
I did not look at other providers.
It takes to much free time now to look at this custom use of the ddblock module at this moment.
Comment #6
NelsonEC commentedokay, that's comprehensible. I try some further, but it is good to know that it theoretically should work like this. Actually I want to admit that I did not copy the php-tags :-)
Thank you for your support.
Comment #7
ppblaauw commenteddid you solve your issue?
Comment #8
ppblaauw commentedset status to closed, 8 weeks without activity. Assume poster solved the issue.