Jump to:

10388 Posts in 2199 Topics by 1713 members

All other Modules

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

Discuss all other Modules here.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Go to End
Author Topic: 67081 Views
  • UncleCheese
    Avatar
    4085 Posts

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

    Check your assets folder and determine:

    1) That there is an "image-gallery" folder as an immediate descendant of "assets."
    2) That there is a folder named after your ImageGalleryPage Title as an immediate descendant of "image-gallery"
    3) That there is a "Default-Album" folder that immediately descends the folder named after your ImageGalleryPage.

  • Anonymous user
    Avatar
    Community Member
    6 Posts

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

    > That's correct. All the resampled images go in the child folder _resampled. That's a Silverstripe convention.

    But on import the content of the original folder is MOVED! The child folder "_resampled" is created twice: in the original folder and in "image-gallery/<album name>". I can't believe that this is correct.

  • UncleCheese
    Avatar
    4085 Posts

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

    The old folder structure is left in tact because not everyone wants to import all of their files from an old folder. If you just pick one or two files to import, the old _resampled folder is still of value to the original images that were not imported.

  • Anonymous user
    Avatar
    Community Member
    6 Posts

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

    Why not linking the original images directly, instead of moving them into a new folder?

  • UncleCheese
    Avatar
    4085 Posts

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

    Because an album has a physical representation in the file system. Files in the My-Album folder are representative of how the gallery will display. If some files in an album are in one place while others are actually in the album folder, the whole concept is broken.

  • Anonymous user
    Avatar
    Community Member
    6 Posts

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

    Ah, ok. I thought you store all necessary information in the database. Nevertheless, on import I would expect that the images are copied, not moved.

  • UncleCheese
    Avatar
    4085 Posts

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

    Yeah, unfortunately, a file can't live in two places in SS. It only takes one ParentID.

  • Anonymous user
    Avatar
    Community Member
    6 Posts

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

    Create a new file from the original one. With new a new id...

    67081 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.