Download & Extend

Automatic Path Generation for User Portfolio List

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

Status:active» closed (won't fix)

As many people have already noted, solutions already exist to make this happen.

nobody click here