Community & Support

chaning the URL for node/add??

Hi Folks,

I bet this is a rookie question, but we're about to go live and I'm cleaning things up and I would like to move away from the standard Drupal URL format /node/add/ to something like //add

I know that you can use Path & Pathauto for renaming content URLs, but I'm not sure about how to change this for data input URLs.

Any suggestions?

Thanks,
Jonathan

Comments

path

Path can do that. You can alias node/add/page to foo/baz, though you'll need to to this individually for each node type. You'll also want to disable the built-in "create content" menu, and make your own menu linking to those items.

If you want to automatically rewrite all of them, you might be able to do it with apache mod_rewrite.
Something like this (caution, I didn't test it, and it would probably need to go above the clean url rewrite rule):
RewriteRule ^baz/(.*)$ node/add/$1

Thanks!

Thanks for the insight! Didn't realize that Path had that kind of functionality built in. Much appreciated.

I've only got 3 URLs I want to change, so 1 at a time isn't an issue... I've also dumped the "Create Content" menus all together. Drupal is an awesome "swiss army knife" CMS that I'm trying to dumb down to a very simple UI to the pieces that my user base will need. :^)

link to new alias with argument doesn't work

I've created an alias for "node/add/type", let say "type/add".
In the content type "type" I've a node reference from url field.

If I create a link to the new url "type/add/[nid]" the page cannot be found
If I create a link to the new url "type/add" (without argument) it works.

If I create a link to the old url "node/add/type/[nid]" it also works.
If I create a link to the old url "node/add/type (without argument)" it also works.

How can I make the new alias work with an argument?
And how can I disable the old url?

Thanks

search is a Beautiful Thing

search is a Beautiful Thing (tm) ;-)

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Except on Drupal

Of course I tried searching, for hours, but the search on Drupal is pretty terrible. I have better luck with Google. :^( I guess it helps to know how others framed the problem too.

Updated- Haha, so I searched /node/add, but I left out the word "alias"... duh. Tried "replace", "change", etc, etc., all with zero luck.

BTW - Have any insights on good search modules? We're trying out Faceted Search, but I understand it's super DB intensive.

Thanks,
Jonathan

no question there is

no question there is definitely some black magic involved in picking the right words with which to search d.o, lol. I like faceted search-- and i haven't noticed any performance problems, but I'm using it on an intranet. I also know there's work going on to improve core search capabilities.

Other options include the http://drupal.org/project/google_cse and http://drupal.org/project/apachesolr modules.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

nobody click here