Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Custom Handling for page name collisions

Avatar

Avatar
Validate 25
Level 4
B_Stockwell
Level 4

Likes

16 likes

Total Posts

105 posts

Correct Reply

7 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 4
B_Stockwell
Level 4

Likes

16 likes

Total Posts

105 posts

Correct Reply

7 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
B_Stockwell
Level 4

09-11-2018

Our news system uses the normal page creation wizard, but removes the "name" field and adds an hidden input containing an numeric ID that is autogenerated--some random ID that is within the next 100 numbers of the last page. The randomness generally prevents collisions, which might occur if 2 users try to create stories at the same time, which would result in a "1" being appended to the end of the node name. But it's not 100% effective, and each time it happens the ID grows b an order of magnitude.

I'd like to implement a custom handling for this, which would just increment by 1 until a free ID is found. OOTB if no ID is entered, it generated one based on the title, which we do not want. I cant find where the collision handling functionality lives, so I'm not sure where to start. Is there some functionality where this already exists?