Hello,
The solution to my question is probably very simple, but i just can't find it...
If i make an alias for the urls of my nodes based on their title, the url that directs to the edit page of this node (node/x/edit), does not change to myurlbasedontitle/edit.
Can somebody explain me how to do this ?
Thanks for your help,
Martin
Comments
Comment #1
kjv1611 commentedHave you tried using clean urls? I'm not sure it would fix this specific issue, but it does take care of pages that are something like
http://mywebsite.com/node/123
changing to
http://mywebsite.com/MyNeatoPage
for isntance. ;0)
Otherwise, I'm not sure if that's even possible... but I'm pretty new to actual Drupal usage/development myself - maybe a month.. ;0)
Comment #2
msteurs commentedHey, thx for wanting to help me. But what you state is not completely correct... i'll explain...
Clean urls just removes the '?q='-string from the urls. For example: http://www.mywebsite.com/?q=node/123 will turn into http://www.mywebsite.com/node/123.
The path module (in core) can define url aliases. For example: http://www.mywebsite.com/node/123 can for instance get the alias http://www.mywebsite.com/myneatopage. With the pathauto module (http://drupal.org/project/pathauto), you can automate this process.
I was thus wondering if urls with extra arguments (eg. edit, like in /node/123/edit), could be changed into an alias taking the same arguments... (in this example: /mynewalias/edit).
Anybody any ideas ?
Thx, and cheers,
M
Comment #3
kjv1611 commentedAh yes, I see what you mean. Oh well. The edit part, best I could find isn't possible just within the drupal environment. Though I suppose it is possible if you actually mess with the php programming. Hopefully someone will have a clue on this one. I'm rather curious myself.
Comment #4
gregglesTake a look at #203804: Replacing node/XXX/edit to mypage/edit
It is currently postponed/won't fixed due to various problems with the idea.
Comment #5
francewhoaIn the meantime something similar can be done with a combination of 2 modules:
url_alter at http://drupal.org/project/url_alter
subpath_alias at http://drupal.org/project/subpath_alias
Those modules rewrite the link to the node edit page node/1/edit to use the aliased URL content/title/edit instead.
For example if the previous paths were
http://yourdomainnamehere.com/yourpathautonamehere/1337
http://yourdomainnamehere.com/node/1337/edit
Then the new paths will be
http://yourdomainnamehere.com/yourpathautonamehere/1337
http://yourdomainnamehere.com/yourpathautonamehere/1337/edit
To install simply install and activate the two modules. No configuration to do.
Comment #6
jolava commentedI can confirm that this solution work. I had thousand of /node/nid/edit node edit forms and these two modules change now the url to /my_alias/edit !
Comment #7
LTech commentedfor drupal 7 users just install http://drupal.org/project/subpathauto. I deleted my aliases and ran bulk update under configuration ->URL aliases and unchecked 'Skip administration paths from sub-path processing.' to get it to work.
Comment #8
LTech commentedThis 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?
Comment #9
LTech commentedhttp://drupal.org/node/331566 was the solution