Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » help starting work on simple gallery system??

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 941 Views
  • DsX
    Avatar
    Community Member
    178 Posts

    help starting work on simple gallery system?? Link to this post

    I am starting to work on what will be a simple gallery system. (I want to create it myself rather than use the gallery module since I don't need much of the functionality and think that its a great project for really teaching me SS)
    That said, I thought about doing it without any modules but wasn't sure how to handle the Holder/sub-holder/image relation that I think I need.
    I therefore came to think that the dataobjectmanager with file and image extension might be a good place to work from.
    I am however very much a newbie to coding in SS, so I was hoping someone might jump in and lend a hand upfront by suggesting a method of structuring the system.

    What I want is:
    - a gallery listing page (thumbnail, title, short gallery description)
    - gallery page (showing the selected image (default 1st), other thumbnails, image description, photographer, models (can be more that one), and the ability to load the next image via URL params since I want to also add my own ajax loading at a later date)

    I guess thats mostly it... any advice would be greatly appreciated?

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: help starting work on simple gallery system?? Link to this post

    OR, can I develop a custom viewer for ImageGallery, and extend ImageGallery with my custom fields??

    I found this thread [http://www.silverstripe.org/dataobjectmanager-module-forum/show/288245] suggesting that I should not use the ImageGallery module...
    is there a code example that is kind of along the line of what I'm aiming for?

  • UncleCheese
    Avatar
    4085 Posts

    Re: help starting work on simple gallery system?? Link to this post

    As the author of the ImageGallery module, as well as that post that seemingly undermines it, I can tell you that what you're looking for is pretty much covered by the functionality of the ImageGallery module, but I think it's smart of you to want to build it from scratch. A gallery is a great way to get your hands dirty with SilverStripe. You'll get exposure to data relationships, custom templating, etc., and that's all good stuff that can be applied to just about any project.

    I can help you get started coding your gallery, but I'm a little unclear on your specs. I can't really make out the difference between your "gallery listing page" and your "gallery page".. And what do you mean by "other thumbnails"?

    Do you have a mockup or anything?

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: help starting work on simple gallery system?? Link to this post

    Thanks UncleCheese... you are always so helpful. Greatly appreciated!

    You can see my current gallery here: gone

    that page is what I meant by the gallery listing page, since each thumbnail represents a different gallery
    clicking on one of these galleries, opens the gallery.
    you can then navigate through the images.

    as you can see this site is rather outdated now, and I am working on the upgrade. So the galleries would ideally have thumbnails listed below the image being shown, as well as, the next and back buttons.
    I would like each image to have its own url as this gallery does, I will then add ajax loading later.

    Does that make it so that I am looking at a galleryHolder, and a galleryImage page types? (as a non-DataObjectManager gallery I thought I might need 3 levels: GalleryList, gallery, and image)
    Haven't got my head wrapped around the DataObject relations yet. I will be playing with the demo code more.. hopefully it soaks in.

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: help starting work on simple gallery system?? Link to this post

    ps: I have used gallery before, with the slideshowpro module... I extended it and added templates for monoslideshow.
    You can see it running here: gone
    being fed and managed here: gone

    just thought you might like seeing what I have done with them... (ps: you were great help during that process... and I am getting a much better handle on SS)

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: help starting work on simple gallery system?? Link to this post

    found a nice basic walk through tutorial here: http://deadlytechnology.com/silverstripe/silverstripe-image-gallery/
    seems to be getting me started, I am now trying to create a holder for the galleries... taking baby steps.

    still if you have word of wisdom, or some warnings about commons hurdles

    just found your silverstripe blog http://www.leftandmain.com/ GREAT!! I will be reading everything on it.

    Cheers

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