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.

All other Modules

Discuss all other Modules here.

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

Image Gallery Extension: Testers Needed


417 Posts   77906 Views

Shawn Parr

17 April 2009 at 6:59am Community Member, 60 Posts

That all sounds good. Very good. Would be almost perfect for our needs (for video, still need something for audio).

- Phase II: If ffmpeg is installed on your server, you get a "convert to FLV" button with auto thumbnail generation.

OOOOH! Me likey, me likey. :)


17 April 2009 at 7:04am Community Member, 23 Posts

yeah that sounds awesome! love it.
are you able to keep it in some kind of modal window or no?
maybe an option to have the video come up in a modal window, or not, so we can compress and use iphone versions without issues on the client side.

thanks UC!


17 April 2009 at 7:07am (Last edited: 17 April 2009 7:08am), 4085 Posts

How did I know you two would be the first to respond? :)

Audio is very much on the way, too. That will be bundled with DataObjectManager. Videos will be in modal windows only for now.

Thanks, guys. I'll keep ya posted!

Shawn Parr

17 April 2009 at 7:11am Community Member, 60 Posts

You just wait until I've had a chance to play with the event calendar.... ;)

Something is always coming up though.


17 April 2009 at 9:25pm Community Member, 126 Posts

Hi, I have the following Problem with ImageGalary Rev. 129 (downloaded it yesterday).

I have a clean blackcandy installation of Silverstripe for a client for testing. I installed DataObjectManager and swfuploader (all revisions from yesterday) and ImageGalary. The Backend is working fine (added a second Album and added a few pictures to both Albums).

When I visit my Galary Page I see both Albums (without a previewpic) but when I click on an Album I get the following Error:

[Notice] Undefined index:
GET /bilder/album/Default-Album

Line 382 in /usr/www/users/joh/image_gallery/code/ImageGalleryPage.php

373          $files = DataObject::get(
374             singleton(str_replace("_Controller","",$this->class))->itemClass,
375             "AlbumID = {$current_album->ID} AND ImageGalleryPageID = {$this->ID}",
376             null,
377             "",
378             $limit
379          );
380          if($files) {
381             foreach($files as $file) {
382                $file->RelAttr = ImageGalleryPage::$attrs[$this->GalleryUI]['rel'];
383                $file->ClassAttr = ImageGalleryPage::$attrs[$this->GalleryUI]['class'];
384             }
385          }
386          return $files;
387       }
388       else


* ImageGalleryPage_Controller->Items()
Line 395 of ImageGalleryPage.php
* ImageGalleryPage_Controller->GalleryItems()
* call_user_func_array(Array,Array)
Line 319 of ViewableData.php
* ViewableData->obj(GalleryItems,,1)
Line 70 of
* include(/usr/www/users/joh/silverstripe-cache/
Line 354 of SSViewer.php
* SSViewer->process(ImageGalleryPage_Controller)
Line 346 of SSViewer.php
* SSViewer->process(ImageGalleryPage_Controller)
Line 175 of Controller.php
* Controller->handleAction(HTTPRequest)
Line 107 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 28 of ModelAsController.php
* ModelAsController->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(bilder/album/Default-Album)
Line 115 of main.php


18 April 2009 at 1:42am 4085 Posts

Looks like you don't have a popup style chosen. Can you double check?


18 April 2009 at 9:25am (Last edited: 18 April 2009 9:29am), Community Member, 164 Posts


I have exteded the ImageGalleryPage to make my own changes like uploading of a thumbnail instead of using an auto generated one and allowing for non-square thumbnails. That all works great. However if I have a single album the ImageGalleryPage.php file tells the page to render with ImageGalleryPage_album. I put this:

   public function init(){
      if(!isset($this->urlParams['Action'])) {
         if($this->SingleAlbumView()) {
      else if($this->CurrentAlbum())

in my controller, my css file is loaded but the page rendered with my own ss file. I guess I have not understood how to do this. I don't want to require image_gallery/css/ImageGallery.css either.

If I comment out parent;;init(); then it seems that a lot of stuff isn't done that needs to be done by Page or SiteTree; Is there a way to run the Page init but not the ImageGallery one?


18 April 2009 at 9:35am 4085 Posts

Have you tried just doing Requirements::block() for all the requirements you don't want?