Posted by TapSkill on September 5, 2009 at 8:52pm
4 followers
Jump to:
| Project: | Node Gallery |
| Version: | 6.x-2.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
I tried so many methods of getting the username into the url, but I couldn't figure it out, and there's only one way to get the username to be in the front of the address: path aliases.
I would like "galleries/1" to become "username/gallery" automatically.
For my own purposes, I hard-coded a bunch of path changes to the module so it could have urls which looked nicer, but I couldn't get it to match the alias for each gallery, which was "username/portfolio/title", because it's impossible to have any argument at the base of a path.
Comments
#1
My first thought on this is pathauto, token and custombreadcrumbs
#2
I use PathAuto to create aliases. Works great. Hacking the module creates a maintenance nightmare and should be avoided.
My galleries have gallery/[author-name-raw]/[title-raw] and my images have gallery/pic/[author-name-raw]/[title-raw] as paths.
#3
I am adding some more information to the node_gallery handbook about pathauto. It is a great module.
#4
As many people have already noted, solutions already exist to make this happen.