Does anyone have a plan to allow you to use images in Gallery within a news item, like the way you seleft images in the right tab section when entering an item? That would be REALLY nice and would truly "integrate" Gallery into Mambo. Right now, it is just an independant area that happens to coexist within Mambo.
If I new how to code php, I would offer to do it....but unfortunately, I don't.
Posts: 2322
I'm sure someone could write a mambot for it, but I have the feeling that it would be incredibly slow.
Posts: 347
The easiest way is to place Gallery's albums directory in your /mamboroot/images/stories/.
Then you can use the images in the content with {mosimage}, the mosthumb mambot or editor.
Kai
Posts: 51
Could you use a symbolic link instead of moving the directory? I would prefer to keep my gallery image directory separate from Mambo, if possible.
Posts: 26
Yes, a symbolic link works:
cd images/stories
ln -s ../../albums/albumForCaptions gallery_captions
Notice that my example has a seperate gallery album for captions.. this keeps people away, lets me keep that album "fit and trim" (no full-sized images are needed there), and prevents problems if I happen to move a photo between gallery albums (which moves its physical location on disk.) So, whenever I want to use a photo (or thumbnail of a photo) for a caption, I COPY it to the hidden captions album, and then access either filename.jpg or filename_thumbnail.jpg from mambo.
Posts: 51
Thanks.
Any word on Mambo functionality in Gallery 2? Since it is DB driven, I would think that it would not suffer from the image move problem you describe.
Posts: 2322
It'll happen, but nobody's working on it at the moment. I've semi-put it on my things to do.
G2 being DB-driven doesn't change how Mambo creates its list of images... it would definitely make it easier to create a separate mambot, however.
Posts: 26
I've played around with G2 alphas... from what I've seen, images are still stored in seperate directories based on what album they are in... implying that if an image is moved from one album to another, that the physical image file is also moved.
Of course, its not a beta yet, so who can tell how things will work out...
Posts: 51
Does Gallery 2 not have a single ID that represents the image, no matter where it is moved? If it does, couldn't the Mambo module/mambot/component/whatever reference that ID and the Gallery DB would point it to the correct image? Or, is Gallery 2 still hard linked to a static directory structure?
Posts: 51
I guess I should post the question in the Gallery 2 forum...
Posts: 13
The easiest way to integrate G2 images in mambo if you cannot create the symlink.
Install the MosCE editor and config as your default mambo editor.
Now install G2 inside your mambo directory.
Config MosCE file browser to show the G2 image folder.
Be suer to also set create new folders chmod to 777 in both programs so you can write thumbs to the image folders.
It took a little playing around but it is working like a charm now.
You can also try FCRediter.