decaporg / decaporg/decap-cms

Make sluggification visible, customizable, and fail-safe

Open
#445 57 comments 84 reactions 0 assignees View on GitHub
area: ui/editor/control-pane hot kind: discussion kind: feature pinned release: 2.0 roadmap status: needs design
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

Default sluggification is simplistic, relying on a title field and performing no inference whatsoever.

**With no field named "title", entries currently fail to save.**

The ideal fix is to simply make slugs editable in the editor UI.

Considerations:

* Slug editing can be switched off through config
* If slug editing is switched off, each collection config must be validated on CMS load to ensure a slug can be derived
* Prepopulate with the same best guess or configured slug template result that we currently use
* Only valid characters may be entered in the slug field
* Slugs and filenames are not always the same, so it should be possible to provide them separately somehow (see [comment](https://github.com/netlify/netlify-cms/issues/445#issuecomment-377425752) below for example)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.