I need to alias "directory/TID" to "directory/[catpath]" for every existing term in a particular vocabulary and also when new terms are added. As far as I know, the current UI doesn't allow anything this complex so I plan to code it myself. I was thinking of cloning and adapting pathauto_taxonomy.inc since it's pretty close but am wondering if that's the best path? Before I invest too much time doing something really dumb, I wanted to run this past you folks and see if there's anything obvious I'm missing. :)

Thanks,

Michelle

Comments

dave reid’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Did you find a solution for this? What module is responsible for the 'directory/tid' paths?

michelle’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

It was Views. Views needs a term ID argument for what I was doing and I wanted to have nice URLs with the term names. So my idea was to alias all the potential IDs to names.

I ended up back burnering the directory project and am only now getting back to it. At this point, I'm not positive I need this anymore because I've changed my plans somewhat. To keep you're queue clean, I'm going to won't fix it. If it turns out I still need it, I'll re-activate with more details. :)

Thanks,

Michelle

dave reid’s picture

Michelle, thanks for the follow-up and sorry no one got to help you sooner. Let us know if you need more help or support.

You should be able to have Views use 'taxonomy name' as the argument and have it convert it to a term ID for the view purposes if you need that.

michelle’s picture

There was a reason why that wouldn't work but I'm afraid I don't remember it anymore. 3 months is a long time for my developer memory. LOL!

No worries. If I get back into it and see I really still need it, I'll bug ya again.

Michelle