It'd be good if galleries could have associated URL aliases.

I really dislike URLS like '/image/tid/16' and '/image/tid/18' for my galleries. I'd much rather have aliases for each gallery, so that I could have:

Photos from Brussels (alias brussels)
-- Lobbying in August 2003 (alias aug2003)
-- Conference in April 2004 (alias apr2004)

Which would yield:
/image/brussels
/image/brussels/aug2003
/image/brussels/apr2004

Comments

lewiz’s picture

Hi, I had the same problem and made a couple of patches to fix it. See http://drupal.org/node/23829 and http://drupal.org/node/23830
That works perfectly for me on my site. You might also be interested in http://drupal.org/node/19920 which adds previous/next navigation when viewing galleries along with optional thumbnail. This is still a work-in-progress, however.

tomchance@www.remixreading.org’s picture

Ahoy,

I looked at pathauto, but I found it too clumsy. My URLs became huge. I'd much rather be able to add specific aliases for each gallery, rather than generating them from titles, etc.

For now I'm just manually creating path aliases for the galleries.

Hetta’s picture

Status: Active » Closed (won't fix)

From 2005?

Pathauto will generate an alias for taxonomy/term/$number . You can add an alias of your choice to the other image_gallery -generated url_alias.src, image/tid/$number yourself:

- use phpMyAdmin: select your drupal database, select url_alias, press "browse", check for the largest pid, clicky "insert" up in the top row of choices, enter the next pid, enter image/tid/$number under src, enter your alias of choice under dst, and press "Go".
- or use /admin/build/path to do the same. I find that approach to be extremely clumsy, though
- or use the command line, log on to mysql, and do an INSERT INTO
- or put the INSERT INTO into an .sql file and do a "mysql -u user -p -h host < insert.sql".

If you don't use pathauto, insert both the image/tid/ and the taxonomy/term/ url_alias yourself. Piece of cake.

image/tid/$number generates a different output from taxonomy/term/$number - perhaps pathauto (or whatever) should generate an alias for both of them, but I'm not sure it's an image issue.

I'll just mark this "won't fix". (I'm cleaning up the issue queue).