Active
Project:
Gallery
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2007 at 07:40 UTC
Updated:
12 Jul 2007 at 03:20 UTC
I have the random image block enabled, however, it points to the wrong URL.
I would like it to point to my gallery at http://gallery.example.com/main.php?g2_itemid=xxx, right now, it points to http://youfolder.com/?q=gallery&g2_itemid=xx, inside Drupal, not what i need.
Gallery2 assumes that my gallery is installed at http://example.com/gallery2.
Any ideas how to fix it? There should be a custom URL for it.
Comments
Comment #1
profix898 commentedYes. G2 always generates links to the embedded Gallery. There is no 'switch' to change this behavior for Drupal. You'd need to add some custom code (e.g.
$content = str_replace('internalURL', 'externalURL', $content)) to gallery_block.inc. There is no other way AFAIK. If you dont need itemID-specific links, but only a link to your standalone default album, you can also use the 'Image Link' field in image block settings.The default path is 'http://example.com/gallery2', but the first time you installed the gallery.module you configured the Gallery paths (namely 'Gallery2 URL or URI' and 'Gallery2 filesystem path') to point to your gallery. You can always change these path on the 'Install' tab (admin/settings/gallery/install).
Comment #2
hectorplus commentedThanks for your detailed explanation. I decided to disable it for now since it doesn't offer what i need at this moment.
Comment #3
mike15 commentedI thought that this is a bug in the current 5.x.2.x-dev code for users that utilize G2 outside Drupal? It definitely used to work in 5.1.x if you set the URI appropriately.
http://drupal.org/node/157903