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.

All other Modules /

Discuss all other Modules here.

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

Image Gallery Extension: Testers Needed


Go to End


417 Posts   117832 Views

Avatar
Shawn Parr

Community Member, 60 Posts

17 April 2009 at 6:59am

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. :)

Avatar
throb

Community Member, 23 Posts

17 April 2009 at 7:04am

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!

Avatar
UncleCheese

Forum Moderator, 4102 Posts

17 April 2009 at 7:07am

Edited: 17/04/2009 7:08am

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!

Avatar
Shawn Parr

Community Member, 60 Posts

17 April 2009 at 7:11am

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

Something is always coming up though.

Avatar
Andre

Community Member, 146 Posts

17 April 2009 at 9:25pm

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
Source

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

Trace

    * 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 .cache.usr.www.users.joh.image_gallery.templates.Layout.ImageGalleryPage_album.ss
    * include(/usr/www/users/joh/silverstripe-cache/.cache.usr.www.users.joh.image_gallery.templates.Layout.ImageGalleryPage_album.ss)
      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

Avatar
UncleCheese

Forum Moderator, 4102 Posts

18 April 2009 at 1:42am

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

Avatar
micahsheets

Community Member, 165 Posts

18 April 2009 at 9:25am

Edited: 18/04/2009 9:29am

Hello,

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(){
parent::init();
Requirements::css('site/css/portfolio.css');

if(!isset($this->urlParams['Action'])) {
if($this->SingleAlbumView()) {
die($this->renderWith(array('PortfolioPage_album','Page')));
}
}
else if($this->CurrentAlbum())
$this->includeUI();
}

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?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

18 April 2009 at 9:35am

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

Go to Top