Skip to content

Issue: slug placeholder not working if there is no title field #830

@estruyf

Description

@estruyf

The issue mentioned on Discord: https://discord.com/channels/992409023607476224/1255903840352604263

Hello. If I use the placeholder {{slug}} for the default value of a field, it doesn't work if the title field is not defined beforehand in the type. Is there a way to make it work without adding the title field?

On the other hand, can the "title" field be renamed to something else? I find it too opinionated, forcing you to use that field in your collections.

I've tested it and there's an issue: it only works if the "title" field exists in the frontmatter. If I set "frontMatter.taxonomy.seoTitleField" to another field, it uses it correctly. However, if the frontmatter doesn't contain a "title" field, it can't read it and doesn't display anything in the SEO section.

image

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    In BETAThe current task is available for testing in the BETA version.bugSomething isn't workingv10.3.0Project: v10.3.0

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions