This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
AUTOID doesn't take non-existing ids into account #50
Labels
question
Further information is requested
I have a model in which I use AutoID to create custom page URLs. Simplified, it looks like this (the actualy URL is more complex):
When creating a page AutoID throws an error because it's trying to call
autoid
onnull
here:https://github.com/bnomei/kirby3-autoid/blob/master/index.php#L82
This happens because we are a step before the AutoID is actually created. I'm not sure about the correct behaviour in general. But in my case I'd like AutoID so either return an empty string or
null
.The text was updated successfully, but these errors were encountered: