Partners

Product Updates

DatoCMS changelog for new features and general improvements
Content Management APIUI Improvement
More blocks per record
September 29th, 2022

We have recently increased to everybody the maximum number of blocks you can have in a record. The limit have been increased by 50%, from 400 to 600 blocks per record.

This upgrade has been applied as the new minimum to everyone, old and new users.

If you need more blocks for a special use case, please reach out at support@datocms.com

The limit seems high enough, but if you start building complex nested structures that are also translated you can quickly reach the limit. Unfortunately it's not a pricing issue but it's more of a technical limit as we need to run validations on all the new blocks that have been added. To avoid timeouts and long waits on the user's side we have added this limit, but if it's a blocker for you be in touch and we can test higher limits together.

NewCLI
New Contentful importer
September 21st, 2022

Closely following the release of the new CLI, we also released a new Contentful importer. You can install it as a CLI plugin, it provides faster import times and covers a number of new edge cases that the previous importer could not handle.

For all the information, take a look at the new documentation.

NewContent Management API
Immutable IDs during environment fork and site duplication
September 20th, 2022

Until now, when forking an environment (or duplicating a project from the dashboard), resources under the newly created environment were assigned new IDs. This included models, fields, fieldsets, records, blocks, menu items, plugins, filters and media assets.

Starting from today, every resource will keep their original ID on the forked environment (or duplicated project). For instance, given a model "Blog Post" with ID "12345" in the primary environment, once the environment is forked, a new model "Blog Post" with the same ID "12345" will be present in the new sandbox environment.

We are so excited about this new feature, as it greatly enhances the developer experience. It makes the adoption of an environment-based workflow even easier, as the cloned environment is indistinguishable from the original one. Migrations are simpler to write, as you can safely rely on the IDs to pick resources, and the same applies to any third-party application that communicates with your DatoCMS project.

This change will also allow us to start working on another very requested feature by community: auto-generation of migration scripts by diffing two different environments!

⚠️ PS. Since now IDs are immutable cross-environment, take extra precaution at selecting the right environment when you're ie. deleting any resource via our Content Management API! The same ID is present on multiple environments, so your API call will work even if you're not targeting the environment you had in mind!

NewUI Improvement
Configurable heading levels on Structured Text fields
September 16th, 2022

In the Presentation tab of Structured Text fields, it is now possible to enable only specific heading levels:

This will have the effect of hiding the relative slash commands on the editor (in this case, the Heading 1 option is not present):

For greater convenience, markdown shortcuts for heading levels that are not available will fall back to the nearest available level — that is, if Heading 1 is not available, pressing # will insert a Heading 2 — and tab and shift+tab keyboard shortcuts, which have the effect of decreasing/increasing the heading level, will skip the levels that are not available:

Images API
Transformation parameters are now available for SVG format
September 15th, 2022

We are happy to announce that it is now possible to use all the transformation parameters made available by Imgix on SVG files as well!

It is important to note that as soon as a transformation parameter is added to the URL of an SVG file, Imgix will proceed to rasterize the SVG, and the transformations will be applied to the rasterized version of the image.

By default an SVG file with any transformation parameter will be converted in PNG format, but you can request a different output format with the fm parameter.

Plugins
Plugin SDK exposes blocks usage information
September 15th, 2022

A small addition to our Plugin SDK: it is now possible to retrieve the number of blocks currently used inside a record via the ctx.blocksAnalysis property.

The information is exposed in every hook related to records editing, namely Field extensions, Sidebar panels, and Form outlets:

import React from 'react';
import ReactDOM from 'react-dom';
import { connect, RenderItemFormOutletCtx } from 'datocms-plugin-sdk';
connect({
itemFormOutlets(model, ctx) {
return [{ id: 'myOutlet' }];
},
renderItemFormOutlet(outletId, ctx) {
const {
blocksAnalysis: {
usage: {
/** Total number of blocks present in form state */
total,
/** Total number of blocks present in non-localized fields */
nonLocalized,
/** Total number of blocks present in localized fields, per locale */
perLocale,
},
/** Maximum number of blocks per item */
maximumPerItem,
},
} = ctx;
// render the outlet here
},
});
UI Improvement
Menu items can now point to a specific shared filter
September 14th, 2022

In the content navigation bar, it is now possible to associate menu items to specific shared filters, so that the user clicking on the item will see a predefined set of filters, table columns and ordering:

UI Improvement
Record filters now save also columns and ordering information
September 13th, 2022

We have extended the capabilities of our record filters, which now behave like fully fledged views!

A filter can now store also a preference of ordering, and the table columns most suitable to consume that specific filtering:

Content Management API
Site search now supports fuzzy search
September 6th, 2022

We just introduced a new parameter that can be added to the filter parameter of site search to enable a fuzzy search. When the parameter fuzzy filter is present, our search engine will find strings that approximately match the query provided.

Here is an example of how to use the feature:

const searchResults = await client.searchResults.list({
page: {
offset: 200,
limit: 20
},
filter: {
fuzzy: 'true',
query: 'florance',
build_trigger_id: '44',
locale: 'en'
}
});
searchResults.forEach((searchResult) => {
console.log(searchResult);
});

In this example, strings like florence will be matched, even if the query is florance.

Please refer to the site search page in the Content Management API documentation for a complete example.

Content Delivery API
Slightly new behaviour for sortable and tree models
July 20th, 2022

We subtly changed the way of working for sortable and tree models. Your content may be affected only if the draft/published system is enabled for some of your models.

Up until now, when a model was using the draft/published system, the user was forced to republish the records after updating the record position or rearranging the tree.

As of today, the changes to records' position of a model sortable (i.e. its position in the list) or tree (i.e. its position in the tree) are immediately reflected on the GraphQL published endpoints: you don't need anymore to publish the record again.

This change only applies to models with draft/published system enabled.