Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Gallery Menu Module URL's look like:
http://example.com/gallery/4669
although I activated url rewriting/clean url and I can reach to my albums like:
http://example.com/v/izmir_ephesus_efes/
Is there any way to make menu urls like clean urls above.
Thanks
Comment | File | Size | Author |
---|---|---|---|
#6 | gallery_menu_paths2.patch | 3.93 KB | profix898 |
#4 | gallery_menu_paths.patch | 2.38 KB | profix898 |
Comments
Comment #1
profix898 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: profix898 commentedHere is a patch which solves the problems mentioned above. This one is ready for testing. Anyone?
Comment #7
profix898 CreditAttribution: 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) CreditAttribution: commented