Hi,
This patch (unfortunately only for D6 for now) is making it possible to have manual aliases for users saved and not overwritten by pathauto.
This patch needs http://drupal.org/node/968622 applied to work at all.
Problems encountered:
* There is no path_edit form on user profile pages. (see: http://drupal.org/node/476294)
I first solved this here, but after some checking this really belongs into its own module or pathauto directly.
* Once an alias has been manually set it was not possible to reset this.
I solved this by changing the path_edit form to have a checkbox and to also automatically create the alias for node and user types if the checkbox is checked.
Note:
As this is pretty generic it should be possible to have this work for all node types, by using the {entity}_load and pathauto_{entity}_update_alias functions.
I think the UI improvement does belong to pathauto or in its own module though.
Conclusion:
In the long run I think it is right to also hook into the path_edit_form as pathauto should really integrate with the path module on all aspects.
This allows new entities to work (maybe even for custom types in D7) and integrates nicely with the pathauto_persist strategy.
As pathauto_persist is about to be merged I think it would all fit nicely to pathauto module.
@Dave Reid: What do you think?
Best Wishes,
Fabian (LionsAd)
| Comment | File | Size | Author |
|---|---|---|---|
| pathauto_persist-with-user-entities-6.x-1.0.diff | 3.11 KB | fabianx |
Comments
Comment #1
klonos...subscribing.