Skip to content

Enhancement: Enumerate indices as filePrefix #844

@wottpal

Description

@wottpal

When creating new content, it's currently possible to prepend the current date & year via the filePrefix attribute.

As we enumerate our files in subdirectories with indices (instead of dates) I would highly appreciate seeing this being automated via Frontmatter CMS.

Idea:

  • New filePrefix format: 0000- where the amount of 0s determines the index string-length (left-padded with 0s).
  • When a new file is being created it checks what's the currently highest index in the subdirectory and prefixes the filename with 000${i+1}-.

Metadata

Metadata

Assignees

No one assigned

    Labels

    In BETAThe current task is available for testing in the BETA version.enhancementNew feature or requestv10.4.0Project: v10.4.0

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions