Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » ImageGallery upload link

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 909 Views
  • engelsman
    Avatar
    Community Member
    3 Posts

    ImageGallery upload link Link to this post

    I was unable to upload images to an album in a locale different than the default. Not sure if this is a correct fix but i had to change this function in ImageGalleryManager.php in order for it to work:

       public function UploadLink()
       {
          return parent::UploadLink()."?album=".$this->getSelectedAlbumID();
       }

    to this:

       public function UploadLink()
       {
          return Controller::join_links( $this->BaseLink(), 'upload?album=' . $this->getSelectedAlbumID() );
       }

    Could not find much info about it so maybe someone finds it useful.

  • engelsman
    Avatar
    Community Member
    3 Posts

    Re: ImageGallery upload link Link to this post

    Or perhaps the UploadLink() function should be fixed in FileDataObjectManager... Which would make the subject of this post a bit misleading :S

    edit: nevermind, the original ImageGalleryManager.UploadLink() would still need the fix

    909 Views
Page: 1
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.