Hi,
I’m working with the code from this tutorial from the website.
But when i update my project to kirby4 the isDraft function is not working. It’s not possible to create a new item when i override this function.
I think the $this->content() causes troubles at that point. Any one know how to fix this so that i can still use draft/unlisted/listed in my project.
public function isDraft(): bool
{
return in_array($this->content()->status(), ['listed', 'unlisted']) === false;
}
Or is there a way to remove the draft status in the change status box in the blueprint? If this is possible i could only work with only unlisted and public items.
But when i try this i still see the draft radio button.