Hi

i would to know if it's possible to use a node containing multiple images to make one slideshow splitting images to display theme separately...actually i must create as many node as images number...it would be great if only one node can be created to do the same...

thanks

CommentFileSizeAuthor
#1 vue-diapo-slideshow-multimage.txt4.33 KBaiphes

Comments

aiphes’s picture

StatusFileSize
new4.33 KB

here is my view code...all works well but views display empty fields , like if you put 2 images and you have 4 fields , views'll display the fourth fields, whitout checking if the field is empty or not...

redndahead’s picture

Status: Active » Postponed (maintainer needs more info)

Ok so I don't fully understand what you are after, but maybe this tutorial will help. http://drupal.org/node/814132

aiphes’s picture

Status: Postponed (maintainer needs more info) » Fixed

thanks for the tuto, i myself inspired by it,
and i think it solved my issue, because the filter [Your Image Field] - list seem to exclude empty field to display...that i would to do...

so what's the difference (and the action) between [Your Image Field] - list and [Your Image Field] - delta?

thanks

redndahead’s picture

Delta is just the image number. So it would return 1, 2, 3, 4, etc. for each image.

aiphes’s picture

Just a tweak , i would to display result only if there are files , this my code to embed view that works :

   <div id="diapo_fiche">
              <?php  print views_embed_view('Diaporama_slideshow_multimage','block_1',$view_args);/*affiche view slideshow diapo*/ ?>
      
    </div>

but this doesnt work, nothing is displayed instead of there are images in fields...

<?php
//Includes pour afficher vue slideshow multimage sur fiche formation
if($node->field_diapo_fiche_flash['0']['view']): ?>
    <div id="diapo_fiche">
        <?php foreach ($node->field_diapo_fiche_flash as $item) : ?>
               <?php  print views_embed_view('Diaporama_slideshow_multimage','block_1',$view_args);/*affiche view slideshow diapo*/ ?>
        <?php endforeach; ?>
    </div>
<?php endif; ?>

so how to test if fields empty and display or not the div ?

thanks

aiphes’s picture

Status: Fixed » Active
aiphes’s picture

Title: Using images of only same node to make one slideshow (views) » Splitting images of only one node to make one slideshow

nobody knows how to test if fielfield is empty or not ? actually images are displayed line by line, not in slideshow, i check "group items" but no effect...
actually items are multiple display 4 times !...look at : http://www.lycee-celony.com/fiche-formation/bac-artisanat-et-metiers-d-a...

aiphes’s picture

Title: Splitting images of only one node to make one slideshow » Using images of only same node to make one slideshow (views)
redndahead’s picture

Title: Splitting images of only one node to make one slideshow » Using images of only same node to make one slideshow (views)
Status: Active » Postponed (maintainer needs more info)

Try adding a filter for the image fid. Set to is not empty. That's your best bet.

aiphes’s picture

ok, but what the image fid filter ? where i can find it ? actually i use : node published filter, node type filter and content : filefield list...

redndahead’s picture

Ok I would have though you used imagefield. But since you don't it may be content: filefield and try to make sure it is not null.

pmathur01’s picture

Hi In my case I do not have [Your Image Field] - list but just image, [Your Image Field] - data and [Your Image Field] - delta.

What should I add? My images when empty are still displayed with "?"

Thanks,

redndahead’s picture

Probably the data.

pmathur01’s picture

data represents the description associated with the image and the image has no data. I changed it to data and nothing gets displayed. I have even checked Hide if there are no images and still i see blank images and the counter says 1 of 10 when there are actually 8 images.

Thanks,

redndahead’s picture

Can you try using the unformatted style and tell me if it still prints out the unused images?

pmathur01’s picture

No. I am not getting that problem in unformatted mode.

aiphes’s picture

@redndahead : i'm using content : filefield list ; so it let me choose the delta one...maybe it will be better to use imagefield ? but actually i'm using a filefield widget imagefield (file)..what i can do more ? or different

aiphes’s picture

Status: Active » Postponed (maintainer needs more info)

this code work well to includes the view into node if cck are not empty, but empty fields are displayed instead of i check do not this...:/

<?php

if($node->field_diapo_fiche_flash[0]['view']
        OR $node->field_diapo_fiche_flash[1]['view']
        OR $node->field_diapo_fiche_flash[2]['view']
        OR $node->field_diapo_fiche_flash[3]['view']):?>
<!-- Diapo deco fiche formation -->
    <div id="diapo_fiche">
       
               <?php  print views_embed_view('Diaporama_slideshow_multimage','block_1',$view_args); ?>
       
    </div>
<?php endif; ?>

EDIT: after search, it appear to be an issue whith imagecache...empty fields are not displayed...ouff...little fear inside me

aiphes’s picture

Status: Postponed (maintainer needs more info) » Active
lupus78’s picture

Status: Postponed (maintainer needs more info) » Active

Settings a Filter on [Your Image Field] - list to check if it's true, solved the problem for me!

pmathur01’s picture

Thanks a lot..This solved it..

Prerna.

aiphes’s picture

can you explain how to do ? i never use filter on CCK fields...

thanks

pmathur01’s picture

Hi,

First in "Fields" I choose My Image field "Content:Image". This field contains 10 images. In its settings I selected hide if empty here.

In Filter I selected Node Type= "Your Content Type" and Content:Image-list = true. (This solved the above issue)

Then select the slideshow mode, in my case I used single frame and used a pager of type thumbnail.

To make it link to the same node, in arguments I selected Node: nid, Settings: -> Provide default argument -> Node ID from URL.

I guess that is it. Hope it helps.

Prerna.

aiphes’s picture

i've the same filters than you, in addition i've the "node published=yes".
In fields i've my field "field_diapo_fiche_flash" content=image, and applied a IC profile.
I've the same arguments as yours.
Same style : diaporama , in display as a block and ajax enabled for views.

So i think about an imagecache issue..because new images are not created (no new folder) on server...view slideshow seem to work right

pmathur01’s picture

I do not have ajax enabled. Did u check removing that?

aiphes’s picture

no change without ajax...very strange behavior

timmyriddle’s picture

I'm having massive trouble trying to get multiple images from the same node to be displayed as a slideshow under Drupal 7 / Views 3. Is this a limitation of the module or am I doing something wrong?

redndahead’s picture

Status: Active » Closed (works as designed)

This is an old issue and I think the 2.x issues have been fixed. There is documentation on how to do that for 2.x. Other than the views ui the steps are about the same.