I am keen to use the "hackable URLs" approach to navigating content, as described here- http://drupal.org/node/247205, however I have one problem.
My nodes exist in several distinct hierarchical categories (described by taxonomies) simultanously. So for example, the node "Fast cars from italy" might be browsable at the paths-
site.com/types/cars/fast/fast-cars-from-italy
and
site.com/countries/italy/fast-cars-from-italy
and more...
multiple aliases per node are supported, and if I run pathauto multiple times without deleting the previous aliases i can build the aliases automatically, BUT only one pathauto rule is active at a time, so if I add a new node it only gets one alias assigned.
Is there any way to automate the generation of multiple aliases per node?, or another way to get hierarchical navigation via views (and nothing other than pathauto/views/token in Drupal 5.1). Any hints greatly appreciated.
Regards: colin_e
Comments
Hi Colin Thanks for the
Hi Colin
Thanks for the feedback on taxonomy vs cck
re your multiple alias request
Simply go to the page you would like to have these hover over the edit button and make a note of its actual id (eg node/63)
then go to /admin/build/path/add > type in the existing path
for example
http://venturacottage.com/it-training-and-support (main path auto name)
http://venturacottage.com/time
http://venturacottage.com/mytime
http://venturacottage.com/valuable/time
are all actually
http://venturacottage.com/node/63
Regards
Joe
Norfolk, UK
Thanks, however i'm looking
Thanks, however i'm looking for an automated rule-based solution (essentially a "multipass pathauto"), we have around 100 people adding content to our site, and I can't let these guys loose on the alias table. (a)They don't have admin rights; (b)They are non-techical people; (c)Too much opportunity to wreck the site structure!
Did you ever find a solution?
Did you ever find a solution? I too am looking for a way to auto generate multiple aliases for a single node. I'm currently seaching to see if there is an "action" available to the rules module. Might be something that has to be custom built.
_
I'm not sure if there's an action for it, but if not, you should be able to use the php code action option and code it yourself with path_set_alias.
I'll take a look at that. My
I'll take a look at that. My PHP skills are very limited if not not-existant. :-) It's been years since I actually developed and PHP was never one of those languages.
Rules work!
I played around last night with rules and was successfully able to delete and create aliases for nodes. I'd recommend making a rule set (e.g. Delete Node Aliases, Create Node Aliases) that contain all of the rules for deleting and creating aliases.
Here was my basic rule setup...
Delete Node Aliases Ruleset
- Delete all aliases that point to system path
- Delete all aliases that point to system path
- ... (and so forth)
Create Node Aliases Ruleset
- Create alias #1 to point to path A
- Create alias #2 to point to path B
- ... (and so forth)
Triggered Rules
- IF new node created (and any other conditions) THEN call Create Node Aliases ruleset.
- IF node deleted (...) THEN call Delete Node Aliases ruleset.
- IF node updated (...) THEN call Delete Node Aliases and then call Create Node Aliases
So far this has worked great but I'm sure issues will arise. One I can think of off-hand is how the aliases are built. I use tokens and build the aliases using the [title-raw] token. It's possible that two nodes could have the same title. That would create the same alias twice, each pointing to a different node.
subscribe
subscribe
This seems like a good idea,
This seems like a good idea, is there a module that I do? I am very interested.
Greetings.
Yes but how to fix the SEO
Yes but how to fix the SEO problem of duplicated paths?
Pathauto does something for that, but is it possible to do the same for more than 2 links pointing to the same content?
You can use the Global
You can use the Global Redirect module.
Contact me to contract me for D7 -> D10/11 migrations.
Similar issue
I'm looking for a similar solution. I want shortened paths to use with our shorter domain (an abbreviated .us domain) while using the longer, full-name domain with title-driven paths.
I've been using the shortened paths so far, so basically [domain]/[node id] which is great for when we post to Twitter or something, but I want some more SEO friendly ones like [domain]/[title] to go to the same node.
Haven't been able to figure a good way to approach it.
Check this out!
You should probably read Two URL aliases for one node in menu.