Configure permalink fallback order

I have a custom permalink setup for a specific type which is "/:slug/" it would be nice to have an option in the config file to have it fallback to filename or any other type of permalink if a slug was not set in the frontmatter. I don’t believe this is possible now or is it?