Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

ImageGallery: default gallery ui style


Go to End


3 Posts   2127 Views

Avatar
Platypus

Community Member, 43 Posts

8 March 2010 at 9:08am

Edited: 08/03/2010 9:14am

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

Avatar
mathiasmex

Community Member, 28 Posts

8 March 2010 at 10:12am

Hi Platypus,

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

Regards
mathiasmex

Avatar
Platypus

Community Member, 43 Posts

8 March 2010 at 10:56am

Edited: 09/03/2010 1:16am

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