I added a photo-like frame to the thumbnails and a little animation on hover, plus the red close button. I thought I share the results for noobs like me! all credit to futureweb and opticblaze, plus Stéphane Caron for prettyphoto of course!
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.
Nachos, this one is pretty nice! Saved me quite a bit of work. :)
Hey All,
Great to see a SS3 Gallery Module coming together - Thank you all for your work on this!
Have just tried installing the module and am getting the following error after creating a new GalleryPage for the first time:
Fatal error: Class 'GridFieldBulkEditingTools' not found in ***\ss3Gallery\code\GalleryPage.php on line 25
Have had a search through the code and can't find this class anywhere, including the required "Bulk editing tools" and "Sortable grid field" modules where I assumed i'd find it...
Has anyone else run into this, any clues?
Thank you,
Hey SnowBoarder82,
You'll want to download those two modules from github and add them to your site.
SortableGridField - https://github.com/UndefinedOffset/SortableGridField?source=c
GridFieldBulkEditingTools - https://github.com/colymba/GridFieldBulkEditingTools?source=c
Thanks for your reply IOTI,
I had already installed these two modules onto the site. However, Just in case I had an older version that may have been missing the required class, I just tried replacing these with the modules from Github in the links that you had provided. Unfortunately i'm still coming up with the same error.
Seems to be generated by the call to the Class 'GridFieldBulkEditingTools' in the following line of code in Gallery/Code/GalleryPage.php
line 25 - $gridFieldConfig->addComponent(new GridFieldBulkEditingTools());
Any other suggestions / answers...
did you do a dev/build and ?flush=all ?
Yes Definitely made sure to do that.
The API changed a while ago. So if using the master development branch of https://github.com/colymba/GridFieldBulkEditingTools
$gridFieldConfig->addComponent(new GridFieldBulkEditingTools());
can just be removed. For the most basic use, this should do and work as expected. Do check out the Readme https://github.com/colymba/GridFieldBulkEditingTools/blob/master/README.md for other config changes. Note that the API on the master branch is likely to change a lot...