Closed (fixed)
Project:
Gallery
Version:
master
Component:
Code / API
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Aug 2007 at 07:51 UTC
Updated:
12 Dec 2007 at 10:11 UTC
Hello,
My Gallery2 is accessible on "/gallery", which is conflicting with Drupal's own image_galleries module. I would like to change URI of my Gallery2 to some other address, for example to "/xgallery". Can you please tell me how to do it?
Comments
Comment #1
yngens commentedchanging title to fit to issue tracker's field.
Comment #2
profix898 commentedIts not possible without altering the module's code. You must 1. change the menu path in function gallery_menu() and 2. change the 'Embed URI' variable under 'Directory settings'.
1) look for
$items[] = array('path' => 'gallery', ...(in gallery.module) and change it to something else2) go to admin/settings/gallery and change 'Embed URI' to match the path above
Dont forget to flush the cache and rebuild the menu. I dont think there are other places you must change, but you will see what happens after you did the modifications above ;)
P.S. Please avoid to double-post to the issues queue and the G2 forums in the future.
Comment #3
yngens commentedprofix898, sorry for double posting on gallery.menalto too. your instructions worked out like a charm, except just one problem that i have been dealing for several hours trying different things - new settings prevent displaying gallery menu block in drupal. i use matrix theme and before i had all the necessary commands for users in the gallery menu block on the left of every gallery page. i made sure that all the settings for the block (an it is in the list of drupal blocks) and settings within gallery2 are correct, but unfortunately it does not show. do you have any idea why?
and just in case if other users will want to use both gallery2 and image_galleries of drupal at the same time, i believe the way that i suggested to resolve my issue should be made possible to set in administration options.
huge thanks to you for helping to solve this big for me issue. and i would appreciate if you could give me some clue how to get gallery menu back to work.
Comment #4
mandclu commentedIt appears one more change is required, this time in gallery_block.php, on line 89:
...should now be:
I tend to agree, it would be nice if you could set this ia a preference.
Comment #5
yngens commented#4 solved the problem. thanx surge_martin!
Comment #6
profix898 commentedI think this will be a feature in D6 version of gallery module. We will probably have an option to disable/move the gallery menu item, because its likely required by http://drupal.org/node/138400.
Comment #7
profix898 commentedThis is now implemented in 6.x-1.x/HEAD.
Comment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.