Enhancement: Define a folder and file prefix for the content type #286

Closed
opened 2026-10-05 02:37:49 +02:00 by adam · 2 comments
Owner

To further enhance the content creation process, it would come in handy to have a folder and file prefix option on the content type.

For instance, right now when a new article is created under the blog directory it is done as follows:

  • /blog/yyyy-MM-dd-slug.md

By using the prefix properties, it will be possible to create additional folders:

  • blog/2022/06/14/slug.md
To further enhance the content creation process, it would come in handy to have a folder and file prefix option on the content type. For instance, right now when a new article is created under the blog directory it is done as follows: - `/blog/yyyy-MM-dd-slug.md` By using the prefix properties, it will be possible to create additional folders: - `blog/2022/06/14/slug.md` <!-- github-sync-id:1270790501 -->
adam closed this issue 2026-10-05 02:37:49 +02:00
Author
Owner

Similar to #360, this setting can be defined on content type or page folder level.

Having the folderPrefix and filePrefix on folder level will allow using multiple content types and all content will be created the correct way for that folder.

Having it on the content type level means that this limits a content type to a certain folder. For example: if you only want this behavior on the posts folder, it could create issues when used on the content type.

If we introduce it on frontMatter.content.pageFolders, what would be the best names for them? @zivbk1 any ideas?

Similar to #360, this setting can be defined on content type or page folder level. Having the `folderPrefix` and `filePrefix` on folder level will allow using multiple content types and all content will be created the correct way for that folder. Having it on the content type level means that this limits a content type to a certain folder. For example: if you only want this behavior on the `posts` folder, it could create issues when used on the content type. If we introduce it on `frontMatter.content.pageFolders`, what would be the best names for them? @zivbk1 any ideas? <!-- github-comment-id:1156122859 -->
Author
Owner

This is available in the product, closing the issue.

This is available in the product, closing the issue. <!-- github-comment-id:2004414691 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#286