10375 Posts in 2190 Topics by 1707 members
| Go to End | Next > | |
| Author | Topic: | 66905 Views |
-
Re: Image Gallery Extension: Testers Needed

17 April 2009 at 6:32am
Hi, ImageGallery users,
Good news -- video is on the way. I just did a video gallery for a client and was really surprised at how easy it was to implement. Let me know what you guys envision for how we could adopt this to the ImageGallery. Here's what I think
- No need to create a VideoGallery page type. At most we can just have a boolean field "Allow Video". This would loosen up the file type filtering on the upload UI (currently JPG only) and also limit the popup UI to only those that support video.
- FLV and MOV are ideal. I haven't seen much else that is web friendly.
- Video thumbnail will initially be a separate upload.
- Phase II: If ffmpeg is installed on your server, you get a "convert to FLV" button with auto thumbnail generation.
-
Re: Image Gallery Extension: Testers Needed

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.
-
Re: Image Gallery Extension: Testers Needed

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!
-
Re: Image Gallery Extension: Testers Needed

17 April 2009 at 7:07am Last edited: 17 April 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!
-
Re: Image Gallery Extension: Testers Needed

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.
-
Re: Image Gallery Extension: Testers Needed

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-AlbumLine 382 in /usr/www/users/joh/image_gallery/code/ImageGalleryPage.php
Source373 $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 elseTrace
* 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 -
Re: Image Gallery Extension: Testers Needed

18 April 2009 at 1:42am
Looks like you don't have a popup style chosen. Can you double check?
-
Re: Image Gallery Extension: Testers Needed

18 April 2009 at 9:25am Last edited: 18 April 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?
| 66905 Views | ||
| Go to Top | Next > |




