Now when you create a new Article node with an image, you'll be able to click on the image and the lightgallery will open. You're free to customize all the options. Once you choose Lightgallery as the field formatter, you click at the gear on the right side of the table to see all the options for lightgallery.īoth view style and field formatter have the same options, so here you'll see options like the ones bellow: Once you open up the Article manage display ( admin/structure/types/manage/article/display), you can change the format for the image field to be Lightgallery. The module provides a way to set lightgallery into any image field using a field formatter.Īfter you install a new drupal instance, you'll have two content types, Article and Basic page, the Article content type already has an image field, so let's use it to test. To configure the image field and thumbnail, open up the Lightgallery options settings and mark the image field:Īfter all the view is configured, you can see the results (the default view is looking at any kind of content published with images), open up the /lightgallery path and click on an image to see lightgallery working. The view provided by the module after installing, already has an image field on the FIELDS section. In Settings > Simple lightGallery you can find several options to control in which. IMPORTANT: To be able to properly use Lightgallery, you'll need to configure an image field. An integration of lightGallery javascript v1 and v2 to WordPress. Lightgallery Autoplay settings > Autoplay Lightgallery Thumbnail settings > Width or Lightgallery Thumbnail settings > Height button on the lightbox that allows viewers to download the gallery. Let's click on Edit button to see more details.Īs you can see the view is a page, you can create a block view of course, this is just an example, the important part is the FORMAT, it's a Lightgallery format, if you click on the Settings link, you'll see all the lightgallery options.Īll the lightgallery behavior can be customized here, on the style options, here are some of the functionalities: In the General settings tab, choose Lightgallery as your Lightbox script and click. This view is installed along with the module. Using the view styleĪfter installing the module, you can check the admin/structure/views page, you'll see a new view called lightgallery. There're two ways to use the lightgallery, using a view style and a field formatter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |