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

Comments

dnaromance’s picture

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

avadhutp’s picture

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

-Anti-’s picture

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.

wheresmycookie’s picture

thanks for your help anti

wheresmycookie’s picture

i will give this recycler thing a try

wheresmycookie’s picture

oh i see

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

thank u