Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Image Gallery Extension: Testers Needed

Discuss all other Modules here.

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

Go to End
Author Topic: 76297 Views
  • Shawn Parr
    Avatar
    Community Member
    60 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    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.

  • throb
    Avatar
    Community Member
    23 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    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
    Avatar
    Community Member
    60 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

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

    Something is always coming up though.

  • Andre
    Avatar
    Community Member
    126 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

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

  • micahsheets
    Avatar
    Community Member
    164 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    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?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

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

    76297 Views
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.