Closed (fixed)
Project:
Gallery
Version:
5.x-2.0-beta1
Component:
gallery_menu.module
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2007 at 09:27 UTC
Updated:
24 Oct 2007 at 07:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
profix898 commentedIn principle that should be possible, but its not yet supported. Marking this a feature request for gallery_menu.module. I'm currently busy with porting modules (including gallery*.module) to Drupal 6. But I will revisit this idea once the basic D6 port stands.
Comment #2
profix898 commentedRaising priority. I'll try to improve url rewrite handling in general (see http://drupal.org/node/179803) and the gallery_menu paths in particular before the next beta (or RC) of the new module will be available. Here is a short todo list:
Comment #3
profix898 commentedA problem for #2 is that D5 menu does not support plus signs in paths. It automatically transforms e.g. 'Album+A' into 'Album%2BA', which is not recognized by G2 as a valid path. Is '+' a valid character in urls? Either Drupal or G2 seems to behave incorrectly here. G2 uses '+' to replace spaces in paths, i.e. for an album named 'Album A' G2 generates the url as 'gallery/v/Album+A/'.
Comment #4
profix898 commentedAttached is a patch which makes the Drupal menu paths identical to the G2 album paths. However I cant get this to work correctly. Now that the Drupal paths look as expected the rewrite rules of G2 are interfering with the Drupal rules. I will need to investigate why and how we can prevent that. Also the Drupal menu system doesnt created nested menu items as one would expect for the paths.
Comment #5
profix898 commentedOne of the URL Rewrite rules for G2 look like ...
As this is at the beginning of the Drupal .htaccess file, every paths with 'gallery/*' is rewritten to '/index.php?q=gallery&g2_path='. Thats good for G2, but Drupal never receives the full path and therefore menu system doesnt work correctly (e.g. it doesnt recognize the path to highlight the active menu item). I'm inclined to say won't fix unless anyone has a good idea here :(
Comment #6
profix898 commentedHere is a patch which solves the problems mentioned above. This one is ready for testing. Anyone?
Comment #7
profix898 commentedI've just committed the patch to cvs. Please try and report any issues. I'm not convinced this is the best solution, but there is no clean way to do this (at least none I can think of).
Comment #8
(not verified) commented