- Description:
This key defines the output URL for files in a given Collection.
CloudCannon uses the output URL in the Visual Editor, and on your Testing Domain and Custom Domain.
Values for this key can be a mix of plain text and template strings, and should begin and end with the
/character.Template strings can contain data placeholders and fixed placeholders, which CloudCannon will replace with the data it references when generating the output URL.
For more information about data placeholders and fixed placeholders, please read our documentation on configuring your template strings.
- Appears in:
└── collections_config └── * └── url- Type:
string- Examples:
In this example, the output URL for files in this Collection will be
/travel/rather than the default/blog/.Copied to clipboardcollections_config: blog: url: /travel/[slug]/{ "collections_config": { "blog": { "url": "/travel/[slug]/" } } }