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

"Image Gallery" module and "Files & Images" tab sync


Reply

7 Posts   1248 Views

Avatar
Myrdhin

27 February 2010 at 12:27am Community Member, 67 Posts

Hello,

Really thanks UncleCheese : "Image Gallery" is really a good module !

I have a question :

I know "Image Gallery" create folders like /assets/image-gallery/[PageName]/[AlbumName]/. But when i upload images in these folders with "Files & Images" tab, i don't see images in the "Content" Image Gallery page tab (in Photos tab)...

Are we compel to use the "Content" Image Gallery page tab (in Photos tab) to populate albums ? Is it possible to synchronize the "ImageGalleryItem" DB table with the actual content of the /assets/image-gallery/[PageName]/[AlbumName]/ folder ?

thanks for your help.

Avatar
UncleCheese

27 February 2010 at 3:37am 4085 Posts

Totally different process. If you want to import images from AssetAdmin, you have to use the "import from folder" option.

Avatar
Myrdhin

27 February 2010 at 4:13am Community Member, 67 Posts

Ok. Thanks.

But, perhaps it should be better to not see the image-gallery folder in Assets ? because i have some clients that puts images in that folders and they think images appear in the Gallery...

Avatar
UncleCheese

27 February 2010 at 5:18am (Last edited: 27 February 2010 5:18am), 4085 Posts

I wasn't aware that Silverstripe supported hiding folders from AssetAdmin. Do you know of a way to do that?

Avatar
Myrdhin

27 February 2010 at 5:33am Community Member, 67 Posts

I'm looking for a solution...
Perhaps with an Extension on AssetAdmin class ? Could we modify a method (SiteTreeAsUL in AssetAdmin) with an Extension ?

Avatar
UncleCheese

27 February 2010 at 5:57am 4085 Posts

I've done it before. It's not fun. Requires a lot of subclassing and a lot of custom templates.

Avatar
Myrdhin

27 February 2010 at 9:48am Community Member, 67 Posts

I'm very interresting how you have done it before :) Could you show me ?