☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

path

Table of contents

Description:

This key defines the raw template to be processed when creating files. Relative to the containing collection's path.

Appears in:
└── create
    └── path
Type:
string
Examples:

In this example, we have configured a create path template for the blog Collection using the date and title fields.

Copied to clipboard
collections_config:
  blog:
    create:
      path: >-
        [relative_base_path]/{date|year}-{date|month}-{date|day}-{title|slugify}.[ext]
{
  "collections_config": {
    "blog": {
      "create": {
        "path": "[relative_base_path]/{date|year}-{date|month}-{date|day}-{title|slugify}.[ext]"
      }
    }
  }
}
Open in a new tab