This release added Asset Browsers, which provide a configurable browsing interface for folders of images, documents, or other files under an Assets heading in your Site Navigation. It also allowed you to link Asset Browsers to inputs, Editable Regions, and the Content Editor as places to browse and upload files, and updated the CloudCannon API.
This release also addressed several issues, including those affecting saving and discarding changes, rich text editors, and builds.
Features & Improvements#
- Added Asset Browsers, allowing you to give Organization Members and Guests a folder of files to browse, upload to, and manage, without providing access to the File Browser. For more information, please read our documentation on configuring an Asset Browser and what the Asset Browser is.
- Each entry under the new
assets_configkey in the root of your CloudCannon Configuration File adds a link under the Assets heading in the Site Navigation, with its own name, icon, description, and documentation link. - The
sourceandpathkeys set which folder an Asset Browser displays, from your Site files or from a DAM by its Reference Key. - The
disable_upload_filekey turns off uploading in an Asset Browser, anddisable_file_actionsturns off renaming, moving, and deleting. Theoptionskey sets upload options, such as accepted file types, maximum file size, and image resizing. - Every Organization Member who can open your Site, and every Guest using Guest Access, sees the Assets heading. In an Asset Browser for Site files, opening a file needs the
site:file:readpermission, and uploading, renaming, moving, and deleting files needsite:file:write. A Custom Permission Group can limit these permissions to specific file globs.
- Each entry under the new
Copied to clipboard
assets_config:
product_images:
path: images/products
name: Product Images
icon: photo_library
description: Photos for product pages. Use JPG or PNG files.
disable_file_actions: true
options:
accepts_mime_types:
- image/jpeg
- image/png
max_file_size: 2048{
"assets_config": {
"product_images": {
"path": "images/products",
"name": "Product Images",
"icon": "photo_library",
"description": "Photos for product pages. Use JPG or PNG files.",
"disable_file_actions": true,
"options": {
"accepts_mime_types": [
"image/jpeg",
"image/png"
],
"max_file_size": 2048
}
}
}
}- Added support for naming an Asset Browser in
allowed_sources, allowing File, URL, and Rich Text Inputs, the Content Editor, and image Editable Regions to upload to and select files from an Asset Browser's folder, using its upload options. Existingallowed_sourcesvalues are unchanged. For more information, please read our documentation on choosing the asset sources for inputs and Editable Regions.- When an input has more than one place to upload to, the Upload files modal lists each Asset Browser by its name and icon.
- Added the
disable_file_actions_in_file_browseroption to File and URL Inputs, allowing you to stop renaming, moving, and deleting files in the file browser that opens when you select an existing file for that input. - Improved performance for the Discard unsaved changes modal and the commit message field in the Save changes modal by converting these areas to Lit.
- Updated the CloudCannon API, which is in Public Beta. For more information, please read our API changelog.
Fixes#
- Fixed an issue where members of the Developers Permission Group, or of a Custom Permission Group with the
org:settings:details:writepermission but notorg:billing:write, could change your Organization's billing details through the CloudCannon API. - Fixed an issue where the commit message in the Save changes modal did not update after you discarded a change.
- Fixed an issue where the Save changes modal stayed open with nothing left to save after you discarded all your changes.
- Fixed an issue where selecting one file in the Save changes modal and clicking Discard selected showed the heading Discard unsaved changes?, rather than naming the file you selected.
- Fixed an issue where dragging from inside a modal or dropdown and releasing outside it, such as when selecting text, closed the modal or dropdown.
- Fixed an issue where you could not edit a snippet with a tabbed Object Input, because it showed a configuration error instead of its inputs.
- Fixed an issue where pasting content with a code block into a rich text editor configured to allow code blocks but not snippets caused an error.
- Fixed an issue where changes in a rich text editor did not save when the content held a damaged placeholder. Rich text editors show HTML they do not allow as a placeholder that keeps the original HTML.
- Fixed an issue where opening a TOML file with a syntax error showed Failed to load and the parser's raw output, rather than the reason and the line and column of the error.
- Fixed an issue where a Jekyll build with the Cache separate bundle install directory option turned on could stop partway when its cached gems were damaged. The build now clears the cache and continues.
- Fixed an issue where an invalid regular expression in
.cloudcannon/routing.jsoncould publish a Site that showed an error on every page. The build now fails, and the build log says which key is invalid and why. - Fixed an issue where copying a Site showed an error, instead of asking you to reconnect your Git Provider, when the Git Provider rejected CloudCannon's access.
- Fixed an issue where signing up with a Git Provider did not ask you to log in when your email address matched an existing CloudCannon account with different capitalization.
- Updated dependencies to patch security vulnerabilities.