Skip to content

slug management #96

Closed Answered by kyoshino
sardarms asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, I made a mistake in the example. (Actually, the example in the Decap CMS thread is wrong.)

slug: '{{field.slug}}'

has to be

slug: '{{fields.slug}}'

Add “s” after “field”. (Documentation)

Does it work?

Sveltia CMS falls back to a random ID when the configuration is wrong, the field is not found, or a slug cannot be determined. 😅

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sardarms
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #95 on January 23, 2024 18:31.