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   1253 Views

Avatar
Myrdhin

Community Member, 67 Posts

27 February 2010 at 12:27am

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

Forum Moderator, 4092 Posts

27 February 2010 at 3:37am

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

Avatar
Myrdhin

Community Member, 67 Posts

27 February 2010 at 4:13am

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

Forum Moderator, 4092 Posts

27 February 2010 at 5:18am

Edited: 27/02/2010 5:18am

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

Avatar
Myrdhin

Community Member, 67 Posts

27 February 2010 at 5:33am

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

Forum Moderator, 4092 Posts

27 February 2010 at 5:57am

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

Avatar
Myrdhin

Community Member, 67 Posts

27 February 2010 at 9:48am

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