Data files make a messy CMS integration with G2

rsbrace

Joined: 2005-07-08
Posts: 13
Posted: Fri, 2005-07-08 20:58

Because all the data files share the same directory as the image files this causes quite a mess when using gallery with a cms built in image manager.

My Installation: I tested G2 with mambo. pointed all my images to be stored in mambos image folder so I could use the same images inside mambos news articles. The photo below will show how many folders have to be navigated when trying to find the images needed.

My recommendation would be to have a data and a photo directory independent of each other.

Other than this great job.

AttachmentSize
mambo-g2.jpg39.76 KB
 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sat, 2005-07-09 01:31

Sorry... this isn't something we'll be changing. We have never intended for G2's data directory to be used by anything other than G2 itself. The g2data directory is for G2 data.

If you'd like to link your images into Mambo's image system, what I'd suggest doing is creating a symlink in your mambo image directory that points to /g2data/albums

 
rsbrace

Joined: 2005-07-08
Posts: 13
Posted: Sat, 2005-07-09 02:10

Thanks,
but my host like many these days will not allow shell access and they refused to install the link for me.

Great program G2 is the best yet and Im disappointed that I will not be able to use it.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sat, 2005-07-09 02:31
rsbrace wrote:
Thanks,
but my host like many these days will not allow shell access and they refused to install the link for me.

Great program G2 is the best yet and Im disappointed that I will not be able to use it.

There are ways (young Jedi), to create the link using a PHP script. Whether your host will *like* that very much is a different matter and something I can't comment on.

<?php
symlink("/path/to/your/g2data/albums", "/path/to/your/mambo/albums/Gallery");
?>

Just put that into a .php file and upload it to your webserver, then run it from your browser. (Make sure and delete it afterward.)

(Note: the 'Gallery' after mambo/albums is the subdirectory/name where all of G2's images will be found. Don't try and link it directly to your mambo/albums directory.)

 
rsbrace

Joined: 2005-07-08
Posts: 13
Posted: Sat, 2005-07-09 15:25
Quote:

Just put that into a .php file and upload it to your webserver, then run it from your browser. (Make sure and delete it afterward.)

I tried this out and received the error below.

Warning: symlink(): open_basedir restriction in effect. File is not within the allowed path(s):

 
rsbrace

Joined: 2005-07-08
Posts: 13
Posted: Sun, 2005-07-24 04:39

Still no luck with the php symlink but I did find a way.

Install gallery inside your mambo directory.

Set gallery to chmod new directories to 777

Install MosCE wysiwyg editor for mambo (found @ mamboforge)
It has a image browser built in so set it for your gallery /albums directory.
Set it for chmod directories to 777 as well so it can create and store thumb images.

This is a work around but it worked in my testing.

Good luck.