Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » ImageGallery: default gallery ui style

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1314 Views
  • Platypus
    Avatar
    Community Member
    43 Posts

    ImageGallery: default gallery ui style Link to this post

    Hi,
    how can I 'preselect' a certain popup style? I found the right way to change the default values for things like max upload or normal size but can't define a default gallery ui/popup style. Any help is very much appreciated

    Regards,
    Platypus

  • mathiasmex
    Avatar
    Community Member
    28 Posts

    Re: ImageGallery: default gallery ui style Link to this post

    Hi Platypus,

    in the CMS, create a ImageGalleryPage, and on the Configuration tab you can choose whatever popup style you want.

    Regards
    mathiasmex

  • Platypus
    Avatar
    Community Member
    43 Posts

    Re: ImageGallery: default gallery ui style Link to this post

    Mathiasmex, thx for you're answer, but I know how to configure the image-gallery manually. ;-)
    What I need to know is: How I can define a certain popup style - like Lightbox - to be already selected when I create a new image-gallery? I adjusted the normal size to be automatically 600px and changed other settings as well, but I can't find a 'default popup style setting'.

    /edit: Problem solved I had to add

    'GalleryUI' => "Lightbox",

    to the static $defaults array in the ImageGalleryPage.php.

    Regards,
    Platypus

    1314 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.