Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Layout is removed when using image gallery

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: 841 Views
  • Justin
    Avatar
    Community Member
    6 Posts

    Layout is removed when using image gallery Link to this post

    Hi, I am not a developer and need help. I have a page with content and I want to have images below the content. The problem is the image gallery removes the content! HELP PLEASE!!!

    My email if needed.
    contact@jabernard.com

  • UncleCheese
    Avatar
    4085 Posts

    Re: Layout is removed when using image gallery Link to this post

    Do you have a link I can look at?

  • Justin
    Avatar
    Community Member
    6 Posts

    Re: Layout is removed when using image gallery Link to this post

    Ideally I want to just have a grid of images below this page. (http://jabernard.net/clients/atlantic-2/Cooling-Towers/)

    This page is what I want below the content (http://jabernard.net/clients/atlantic-2/new-imagegallerypage/)

  • UncleCheese
    Avatar
    4085 Posts

    Re: Layout is removed when using image gallery Link to this post

    You can use RecentImagesGallery() for that.

    $RecentImagesGallery(number_of_images, url_segment_of_gallery)

    The default values are 5, and the URLSegment of the first ImageGallery in the database, so if you just have one ImageGalleryPage, you don't need the second argument, and if you only want 5 images, you can leave that argument out, too.

  • Justin
    Avatar
    Community Member
    6 Posts

    Re: Layout is removed when using image gallery Link to this post

    I see. What are the steps for doing that, not a developer.
    Where do I put:
    RecentImagesGallery()
    and
    $RecentImagesGallery(number_of_images, url_segment_of_gallery)

    And this will allow me to have my page layout with a group of thumbnails on the page?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Layout is removed when using image gallery Link to this post

    If you're not a developer, Silverstripe is going to be a real uphill climb for you... are you at least working with a developer who can do this stuff?

    It sounds to me like you just want to associate images with a page.. not have a whole section of your site as an image gallery. If that's the case, you need to set up that relationship and use an ImageDataObjectManager on your page. That way you don't have to deal with the ImageGallery module and do it the way you want to.

    But again, without any development chops, you're going to have a really hard time. Silverstripe isn't a whiz-bang CMS.. it's a programming framework more than anything.

  • Justin
    Avatar
    Community Member
    6 Posts

    Re: Layout is removed when using image gallery Link to this post

    For the most part I have done everything myself. I understand .css and .html. But .php is something I am trying to learn.

    You are right about me wanting to just have a specific gallery for a specific page. At one point I was able to populate a page with multiple galleries without the content disappearing. And I didn't touch any .php.

    I am looking for a developer who can help me with Silverstripe. Especially for this particular job I am doing. Are you available for hire?

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