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

Issue: Slug field is not auto-populated on .mdx creation #415

Closed
jordanlambrecht opened this issue Sep 18, 2022 · 2 comments
Closed

Issue: Slug field is not auto-populated on .mdx creation #415

jordanlambrecht opened this issue Sep 18, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@jordanlambrecht
Copy link

I have a post type that contains a slug field. When creating a new post, it does not automatically populate that field (such as a Date field does). Additionally, updating the content of that field does not automatically rename the file unless you hit the "Optimize Slug" button.

@jordanlambrecht jordanlambrecht added the bug Something isn't working label Sep 18, 2022
@estruyf
Copy link
Owner

estruyf commented Sep 19, 2022

In the previous release, a new slug field can be used from the panel, and with the {slug} placeholder, it can be automatically populated.

#349 should cover this issue.

@estruyf
Copy link
Owner

estruyf commented Sep 19, 2022

Documentation from the Slug field can be found here: https://frontmatter.codes/docs/content-creation/fields#slug

Example:

{
  "title": "Slug",
  "name": "slug",
  "type": "slug",
  "default": "{{slug}}"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants