惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
博客园 - 三生石上(FineUI控件)
量子位
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
V
Visual Studio Blog
雷峰网
雷峰网
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
T
The Blog of Author Tim Ferriss
U
Unit 42
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
阮一峰的网络日志
阮一峰的网络日志
Y
Y Combinator Blog

CloudCannon Blog

Building with AI: Git-based vs headless vs traditional CMS CloudCannon + Astro: performance meets powerful content management Introducing the Astro Component Starter Introducing Jetstream — built on the Astro Component Starter Why we switched to the system font stack Redesigning CloudCannon’s docs with Diátaxis, Lume, and Pagefind Make content editing more visual: upgraded Editable Regions How Configuration Mode makes building editing interfaces easy Your hosting just got an upgrade (and a price cut) Custom testing domains for professional branding Keep your content consistent with input validation Managing multilingual content in CloudCannon Simplify team publishing with conflict resolution and domain tools Open Beta: Publishing Conflict Resolution Getting started with CloudCannon and Astro: Bookshop, components, and live editing Welcome to the CloudCannon Community! Omnichannel delivery is just marketing spin from API-based CMS companies Getting started with CloudCannon and Astro: Snippets and Collections Managing digital assets in CloudCannon: a guide to smart asset storage Understanding CloudCannon's branching workflows and Projects: a complete guide What is a static website? CloudCannon’s 2024 wrapped Getting started with CloudCannon and Astro: WYSIWYG blogging Jamstack vs. WordPress: reasons to make the change The top five static site generators for 2025 (and when to use them!) Free Jekyll themes for 2025: ten great community options Eleventy (11ty) vs. Hugo How to set up WYSIWYG editing with MkDocs Material The rise of static-first websites: why major brands are making the switch Watching your Core Web Vitals on Jamstack
Updated input configuration for your workflows
2021-11-26 · via CloudCannon Blog

As your CloudCannon sites grow progressively larger, you’ll want to configure more and more inputs. Our previous input configuration required users to redefine their input keys multiple times, spreading the configuration for an input across multiple places. This was, admittedly, a suboptimal process. But no more!

One key to rule them all Direct link to this section

We’ve now created a consolidated key called _inputs that encompasses our previous keys:

  • _options
  • _comments
  • _instance_values
  • _select_data
  • _structures (renamed from _array_structures)

For example, our previous configuration would result in the following:

hero_image: /uploads/hero.png
_comments:
hero_image: Use a large image here
_options:
hero_image:
width: 500
height: 600

The new configuration looks like this:

hero_image: /uploads/hero.png
_inputs:
hero_image:
comment: Use a large image here
options:
width: 500
height: 600

Inclusivity and flexibility Direct link to this section

Our team, like many others, speaks and works across a range of languages — including Spanish, Portuguese, German, Afrikaans, Mandarin, and Russian. It's important to us, then, that our new features are more inclusive for developers and clients working in languages other than English. To help everyone, we've introduced two new configuration settings, type and label, which let you define a label text separate from the input key and associated naming conventions. Now that your inputs can encompass a type, for example, your labels will no longer end up a mix of languages with appended suffixes. This also means that diacritics like umlauts or accents are now supported in labels.

Another heavily requested feature we've added is the ability to connect a select or multiselect input to datasets outside of the naming convention. You can also choose the value that the select / multiselect input saves, making it that much easier to access and use that value in your templates.

We've added a disabled input for text that you want to be visible but not editable, and we've also brought in two new inputs — range (number) and switch (boolean) — as well as support for conditionally shown input fields. This means you can set a hidden key on an input, which is based on another input: toggle a checkbox, and suddenly you'll reveal more keys to edit!

It doesn't stop there. We have more input types coming soon — contact our support team if you have specific requests.

Hello, structures Direct link to this section

To help clarify one of our most popular features, we've renamed Array Structures to Structures. These can now be configured with _structures instead of _array_structures — you can either define the values directly, or reference _structures as defined anywhere in your configuration cascade. (Whichever way you like to work, we've got you covered!)

We’ve also added support for structures on objects, which can power object variants without using arrays. For example, your blog posts might end with a CTA block relevant to the content. Now that we’ve allowed structures on objects, a content editor could be enabled to choose the most effective type of CTA for the post. They might opt for a newsletter CTA instead of a signup CTA, and can now make that choice by replacing the whole object rather than dancing around a set of unused fields.

You know your content (and your content editors) better than we do, so we've opened up configuration options for object previews: text_key, subtext_key, image_key and icon are now available to configure for arrays, objects and structures.

Comments now support a limited set of Markdown: links, bold, italic, subscript, superscript and inline code elements are allowed. Links in this block now also support Editor Links.

Update when it's right for you Direct link to this section

While we do recommend updating to the new key to smooth out your future workflows, we also know that required updates can be a burden, particularly if you’re pushed for time. That’s why we’re still supporting the previous configuration with full backwards compatibility, allowing you to update your sites when it best suits you.

Of course, new users will benefit from the updated key and new input types from day one.

About 80% of the digital agencies and external developers we’ve spoken to — and there have been a lot so far! — have requested more explicit input configuration for their current or potential clients, so we’re quite excited to see how this consolidated key is used, and how much time it's going to save you. Defining every characteristic of an input in a single place should cut down a lot of double- or triple-handling when it comes to defining and redefining keys, freeing up your development time for more interesting tasks.

How to migrate Direct link to this section

We’ve written up a full migration guide over on our Documentation pages with detailed explanations, examples, and before-and-after code blocks. Please note also that the docs on Customizing your inputs in the Data Editor, Changing inputs in the configuration cascade, and Using Text Inputs to edit your data — and our other input pages — have been updated to reflect the new _inputs key.

If you have any questions about the migration process, feel free to get in touch with our helpful support team.