Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Layout is removed when using image gallery


Reply


7 Posts   886 Views

Avatar
Justin

Community Member, 6 Posts

30 March 2010 at 5:49am

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

Avatar
UncleCheese

Forum Moderator, 4096 Posts

30 March 2010 at 6:09am

Do you have a link I can look at?

Avatar
Justin

Community Member, 6 Posts

30 March 2010 at 6:45am

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/)

Avatar
UncleCheese

Forum Moderator, 4096 Posts

30 March 2010 at 7:13am

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.

Avatar
Justin

Community Member, 6 Posts

30 March 2010 at 7:28am

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?

Avatar
UncleCheese

Forum Moderator, 4096 Posts

30 March 2010 at 7:45am

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.

Avatar
Justin

Community Member, 6 Posts

30 March 2010 at 8:03am

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?