Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Albums in Gallery

Our old forums are still available as a read-only archive.

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

Page: 1 2 3 4
Go to End
Author Topic: 5739 Views
  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Albums in Gallery Link to this post

    well I think it is already there in the GalleryPage at the bottom of the 'gallery' tab, so to use it you just have to call $DefaultIcon, or if you want to style it then <img src="$DefaultIcon.URL" />

    so in your GalleryHolder.ss file you would do something like:

    <% control children %>

    <h2>$Title</h2>
    <a href="$Link">$DefaultIcon</a>

    <% end_control %>

  • UncleCheese
    Avatar
    4085 Posts

    Re: Albums in Gallery Link to this post

    mhull: Can you explain what's happening with SWFUpload? That's the one place it's most likely to break, so I'm really trying to iron out that part of it. If possible, can you tell me your version of Flash Player, browser, and what exactly the error is?

    Aram: Glad you like it. Stay tuned for more add-ons. I didn't realize Floatbox was framework-indexpendent. If that's the case, I'm happy to add it to the bundle.

    LeeUmm: For the time being, we can paginate the "gallery overview" page to say, 10 albums per page. That's all built into the DataObjectSet class, so it should be no problem. As far as the sidebar, though, that could get long. I wonder if you're better off having not only multiple albums, but multiple galleries, as well?

    Everyone: Please feel free to log into the admin. It's all wide open for you with admin/password. Or, to get access to just the gallery features, go to http://www.mysite.com/my-gallery/admin and it should grant you admin perms on the gallery page only.

  • mhull
    Avatar
    Community Member
    79 Posts

    Re: Albums in Gallery Link to this post

    UncleCheese, it seems to be something to do with the _config.php file in swfupload.
    I am on leopard Safari v3.2, Flash 9.0 r124.
    Working when I look at your site, but not installing after flushing the database and trying on mamp.

    Aram, many thanks for all your help, all working now!
    One more unrelated question: I have made a sidebar through 'Sidebarcontent' => 'HTMLText'
    How would I allow this to hold images aswell? at the moment it will only allow text. Any ideas?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Albums in Gallery Link to this post

    What makes you think it's a problem with the _config.php file? Have you checked the perms? Is there a specific PHP error it's throwing?

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Albums in Gallery Link to this post

    aram: There is nothing wrong with it being dependent, nothing at all. The only real pro would be if you're already using something like jquery, the file size of the lightbox would be smaller because it would obviously take advantage of the functionality of jquery. It's really just me being picky I guess lol.

    UncleCheese: Ya I'll have to mull it over and see what the best option is. The development part of the site I'm doing is still a bit off, as it's a larger project still on the design phase. I'm just thinking for when I get to that part.

    Another thing I'm not really familiar with would be the performance of the gallery once it gets large since this holds all the images in one folder. I don't think it would be an issue, but as I stated, I'm really not familiar with this it.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Albums in Gallery Link to this post

    New version!

    Albums are now tied to physical folders, so you have the option of creating a new space for your images, or using an existing folder. This is mostly beneficial to users who are currently on a standard GalleryPage and want to port over their existing images. Plus, it makes asset management a lot more organized.

    Other fixes are mostly CSS bugs, IE6 in particular.

    As always, demo is at:
    http://imagegallery.carlinowebdesign.com

    Admin for gallery:
    http://imagegallery.carlinowebdesign.com/gallery/admin

    Admin for CMS:
    http://imagegallery.carlinowebdesign.com/admin

    Credentials: admin/password

    Download:
    The uploader isn't accepting my file on account of its size. Here's a link:
    http://imagegallery.carlinowebdesign.com/ImageGallery_0.6.zip

    5739 Views
Page: 1 2 3 4
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.