hi , after a day I finally get shadowbox worked for me! I change the format of my image in manage display of content types and it works for me , and galleries are working well . but I don't want all my gallery images to be shown in the page , I only want the first image to be shown and when I click on it , I get shadow box and see other images , is there a way to do that in drupal , I don't want to change my css and change the display:none
thanks

Comments

smtabatabaie’s picture

I didn't find a way to edit my post , so I do it as a comment. I'll be appreciated if someone can tell me what is the difference between "gallery page" , "gallery field" and "gallery node" of this module .
thanks

manfer’s picture

In 7.x-3.0-beta5 version a new compact parameter has been added to the shadowbox formatter. So if you have an image field (multimage, accepts more than 1 image) and you set its formatter as shadowbox with gallery type and compact checked, you will get a gallery in which only the first image thumbnail is displayed and when you click on it shadowbox is opened and you can view all the images there.

Gallery page -> All images on the page are grouped in same gallery. This means for example if you are viewing a page that shows various nodes that have an image field when you click any of the thumbnails of that page the shadowbox that opens contains all images of the page.

Gallery node -> All images on the node are grouped in same gallery. This means when viewing a node when you click in an image thumbnail the shadowbox that opens contains all images of that node. (Take in mind a node could have more that one different image field).

Gallery field -> Only the images of same field are grouped in a gallery. This means when you click on the thumbnail the shadowbox that opens only contains images of that field.

smtabatabaie’s picture

thanks manfer ,that's exactly what I wanted

manfer’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -single image

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit e9a6b11 on 7.x-3.x, 8.x-1.x by manfer:
    by manfer: Added disable warning in settings page. Issue #1107162 by...