lnid update upon deletion of a node

viz8 - December 18, 2008 - 02:36
Project:Type-local nids
Version:5.x-1.3
Component:Code
Category:feature request
Priority:normal
Assigned:viz8
Status:won't fix
Description

I dont know if it is already a feature of lnids or not (i tried reading the module code, but im not that advanced yet), but i would like the lnid number to get updated once you delete a node of that content type. For example, if i have a particular type under moderation (modr8 module) and i reject the user's node, i would like for it to not get a lnid assigned and the next accepted node to continue with the numeration. If it is already a feature, then in my case its not working. I would greatly appreciate if someone could help me out pointing me in the right direction. I dont know if this is possible with a patch or some other type of code, but so far my attempts have been unsuccessful. Thanks in advance!

#1

ausvalue - January 5, 2009 - 05:17
Status:active» won't fix

Reorganisation of lnids after a node is deleted is something that most users would not want. Most of the use for this module is with pathauto to generate URLs. If for example we had several nodes of a particular type and the first one was deleted, then reorganisation would involve all the the following nodes changing their URL. Any links pointing to these nodes would now end up pointing to the wrong node.

It would be relatively easy to implement it for the special case of deletion of the latest node of a particular type but even here, you would not want to do it for everybody. There is always a chance that someone has created a link to that node previous to it being deleted. Better to show that this node no longer exists than have a link go to a totally different node.

I'm changing the status to 'won't fix' even though its not my module as that is what I expect is the answer.

 
 

Drupal is a registered trademark of Dries Buytaert.