I've got everything set up and working for a ddblock instance. My only problem is that the cck file field is set up to allow for multiple values. In the view, if I don't select " Group multiple values" for the file field settings, then ddblock creates a slide for each of the images in the cck field. If I do select " Group multiple values", then no images show up and I just get the gray box.
What do I need to do to have ONLY the first image in the cck field show up as a slide in my ddblock?
Thanks for your help.
Comments
Comment #1
ppblaauw commentedCan you set "group multi values" and then uncomment the drupal_set_message lines in the preprocess functions for the ddblock slideshow in the template.php file of the theme you use on your Drupal site.
Can you attach the result of the debug lines, to have a look what will be created for the image field.
Are you using the dev version or the RC6 version of the module?
Comment #2
zdean commentedI am using RC6...
Here is the result of the debug lines:
Thanks for your help
Comment #3
ppblaauw commentedDon't see any value for the image field in the result of the debug lines.
Will try and set this up on my testserver.
But this can take a while, first have a project to finish.
Comment #4
zdean commentedthat's how the output comes out if I enable the "grouping" option. Here is the output with the "grouping" option disabled:
Comment #5
ppblaauw commentedOk, Probably the statement in the preprocess function:
Will return an array of $filepath for all the images in the multiple_image field.
To get only the first image you can probably use:
Like below
Same has to be changed for the pager preprocess function.
I did not test this, so hope this works. Please let me know.
Comment #6
zdean commentedThat didn't work.
I changed the 4 instances of $filepath to $filepath[0] and enabled "Group Multiple Values" in the view.
The ddblock only shows the first slide (no pagers) and the image is just a gray box...just like the behavior I originally reported.
Any other ideas?
Thanks.
Comment #7
ppblaauw commentedDo you have a link to the Internet site?
Did you create at least two nodes?
Comment #8
zdean commentedI sent you a link through the contact form. And yes, there are at least 2 nodes (they both show up when Group Multiple Values is disabled).
Thanks again.
Comment #9
zdean commentedIf anyone has any ideas, I'd still appreciate some help on this.
It seems that ddblock doesn't recognize a multi-value field? When I uncomment the drupal_set_message lines in the preprocess functions while "Group Multiple Values" is enabled in the view, the field doesn't show up in the debug lines.
I'd be willing to pay someone to help with this...please help!
Thanks.
Comment #10
ppblaauw commentedWhen you want us to perform this as a paid service, you can fill out the design requirements questionnaire at: http://themes.myalbums.biz/content/design-requirements, to create an efficient work-flow.
Comment #11
zdean commentedI'd be happy to do that, but I need to have some idea of how much it will cost and how long it will take.
Comment #12
ppblaauw commentedSend you a reply on your submission of the design requirements questionnaire.
Comment #13
ppblaauw commentedFor deleting the additional nodes you could add the following code in the preprocess functions to delete them.
The code needs to be placed in the preprocess functions for the slideshow. (both content and pager preprocess functions)
between the lines:
if (!empty($vars['content'])) {
.....
insert code here
.....
foreach ($vars['content'] as $key1 => $result) {