gallery2 and drupal integration
|
carltonb
Joined: 2005-11-06
Posts: 2 |
Posted: Sun, 2005-11-06 22:05
|
|
Have been running Gallery2 for a few weeks and all seems well. I now want to integrate it with Drupal, but here is my problem. I do not understand how to do it, there are too many conflicting directions of what to do I have become very confused. My gallery2 install is at http://www.carltonbrooks.net/gallery2 When I go to administer>settings>gallery> in drupal what path would I use to integrate the two programs. Or do I need to use a symlink in gallery2. EITHER WAY I DO NOT UNDERSTAND Thanks for all the support carltonb Gallery version = 2.0.1 core 1.0.0.1 |
|

Posts: 2
carltonb,
You might want to have a look at this site: http://drupal.org/project/gallery
It provides information on a module available for Drupal that allows for
Gallery integration.
Go to the address http://lab.walkah.net/drupalgallery/ for an example of how
it would look.
Also, you may want to move the files in the drupal directory to the web directory
to make this integration go a little more smoothly. At the same time, it won't
require people to know that they have to type http://www.carltonbrooks.net/drupal,
and instead can type http://www.carltonbrooks.net. I don't know if doing this
contradicts Drupal's suggested setup, but it seems a little more logical.
Posts: 189
Setting the path to '../gallery2' should work for you. I know there are some instructions about a symbolic link, but I cannot find out why this is necessary (anyone)?
If that does not work for you then add a symbolic link in your drupal dir to the gallery2 dir using:
ln -s ../gallery2 gallery2And then your path would be 'gallery2'. The instructions say to use a trailing '/' but it's not necessary as the code seems to include it.
Check out http://codex.gallery2.org/index.php/Gallery2:How_to_Embed_Gallery2_in_Drupal for further help.
Posts: 2
I am still confused, though I tried all the suggestions none seem to work. Can someone explain the following
cd /var/www/drupal.site
ln -s /path/to/gallery2
Using the above from the gallery.module infornmation it says to perform the following if the gallery is in a different directory than drupal.
So... if my drupal directory is http://www.carltonbrooks.net/drupal and my gallery2 is at http://www,carltonbrooks.net/gallery2
What should the above read. What I fail to understand is the "/var/www/" or the "/path/to/" what information gets replaced by this.
Again thanks for the help.
carltonb
Posts: 189
The http:// part is the URL. This is the part that a web browser would use to get onto your site. But the actual files are stored on your server in a set of directories. It is this that the path is refering to. For example, on a site I might have the URL that someone uses to access it as http://www.example.com/drupal, but the files are actually stored on the server as /var/www/htdocs/drupal (or /home/user/public_html/drupal or ...).
You need to know where you put the files on the server. Did you ftp them? What directory did you ftp them to? If you have shell access (which you need to create the symbolic link anyway) you can just do an
lsand see what the path is. Once you get to your drupal directory, then create the symbolic link as I mentioned.Posts: 48
I took a look at your site; looks like you abandoned Drupal for Joomla? What gallery are you using now? I have two sites running drupal/gallery, and the integration is awesome, but the performance is poor!