For example, I set a path "node/XXX" to "mypage".
Can I replace a path like "node/XXX/edit" to path "mypage/edit" with pathauto module?
Or may be another ways exists. Thanks!

Comments

greggles’s picture

Status: Active » Postponed

Once or twice people have requested this but the problem is that it creates an enormous amount of aliases in the url_alias table which makes your site relatively slow.

Given that people already experience slowness due to Pathauto creating a lot of aliases, I feel this would be a bad feature to implement. Of course, allowing people to shoot themselves in the foot is not something I necessarily want to get in the way of, so if someone else writes the code then I'd be willing to commit it as long as it did not clutter up the interface (i.e. don't provide a u.i. checkbox for it, make it an option that must be set via the settings.php).

greggles’s picture

Status: Postponed » Closed (won't fix)

Actually, this specific thing is not possible. Instead see the "me" module: http://drupal.org/project/me

greggles’s picture

Version: 5.x-2.x-dev » 7.x-1.x-dev
Status: Closed (won't fix) » Postponed

If we used progressive disclosure then the UI issues related to this would be so bad, so this is postponed until #273104: Using "progressive disclosure" for alias patterns

The performance issues would still be there, but that's up to each user to decide for themselves...

crossz’s picture

i need this feature.
I need to hide most of the nodes, but I can not disable all the access from others.
So I want to hide the nid.

Same with 'my account'--'edit', here the nid is disclosed as well.

So, how to hide the nid from 'edit' modes?
Thanks,

Francewhoa’s picture

+1 for this new feature.

I suggest to deactivate this feature by default. And within the UI adding a note about the performance beside it.

In the meantime something similar to this new feature can be done with a combination of 2 modules: url_alter & subpath_alias. Read more at http://drupal.org/node/313411#comment-1801782

Freso’s picture

Status: Postponed » Closed (won't fix)

Actually. Because of performance reasons and because different people will have different needs when it comes to having "node/%/foo" aliased, the Subpath Alias module will most likely be a much better fit. (Thank you, Onopoc, for the hint!)

LTech’s picture

The subpath alias module works for node/edit/. But it isn't working for node/add/content type.
Is there a way I can just make the link add/content type without the word node?

LTech’s picture