2

I have multiple images attached to a node that act as a gallery using fancybox. In views I am attempting to only display the first attached image.

The idea is to only display the first image then when clicked, fancybox will go into gallery mode displaying all subsequent attached images.

I have tried the 'Group multiple values' showing '1value' starting from 0.

This works for only displaying the first item, but unfortunately when clicked fancy box does open but not in gallery mode. It just displays the first item.

What i need to do its open all attached images as a fancybox gallery but from only the first item.

Any help or ideas would be much appreciated.

-1

Use the display CSS properties.

.field-content ul li{
    margin:0;padding:0;
    display:none;
}

.field-content ul li:first-child{
    display:block;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.