Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to lock folder to specific document types #75

Open
danteissaias opened this issue Jun 13, 2024 · 1 comment
Open

Ability to lock folder to specific document types #75

danteissaias opened this issue Jun 13, 2024 · 1 comment

Comments

@danteissaias
Copy link

Only allow blog posts to be created in /blog folder for example.

@Jamiewarb
Copy link
Contributor

Jamiewarb commented Jun 26, 2024

I believe this can already be achieved through a combination of initialValue for the pathname, and locking the folder, e.g.

definePathnameField({
  initialValue: { current: '/blog/' },
  options: { source: 'title', folder: { canUnlock: false } },
}),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants