Deleting Node

wheresmycookie - September 27, 2008 - 04:10

If I delete a node in drupal, for example

if I have http://www.example.com/node/22

and I delete it, is there any way I can create a new node to replace it, so node 22 becomes the new node

for example, if it is a story, change it to an audio node

or is there any way to replace it without deleting it??

Any help would be appreciated,
Thank you,
NN

Edit or create a new one

dnaromance - September 27, 2008 - 05:07

Hi NN,

If node/22 is your latest post and you were to create a new same content type, then you can edit the node.

BUT if it's not your latest post, I mean you have posted many other content type after node/22, then I think it might harder or impossible for you to create a new node and name it node/22. I'm curious why you so particular for node/22? Is it your lucky number?

You can also try URL path, and just simply name it let's say "audio", so it's url will be www.example.com/audio

Hope this helps. :)

Best regards,
kailoon

It is possible. The recycle

avadhutp - September 27, 2008 - 08:32

It is possible. The recycle node module does exactly this: http://drupal.org/project/recycle_node

That module simply stops

-Anti- - September 27, 2008 - 10:07

That module simply stops nodes from being properly deleted by users with the 'delete' permission.

To the original poster:
You can't currently change a node's content-type once it has been created.
Although I remember reading that this functionality might be something which is included in D7 or D8.

I'd use pathauto and/or aliases. Then you wouldn't use the node's numeric reference at all.

So node/22 would be node/a-content-title
You'd delete that, create a new node which might be node/45, but you'd give it the alias node/a-content-title
Links and bookmarks which previously pointed to node/22, will now point seamlessly to node/45.

thanks for your help anti

wheresmycookie - September 27, 2008 - 21:02

thanks for your help anti

thanks

wheresmycookie - September 27, 2008 - 21:01

i will give this recycler thing a try

ok

wheresmycookie - September 27, 2008 - 21:01

oh i see

22 was just an example number.. no special reason :)

thank u

 
 

Drupal is a registered trademark of Dries Buytaert.