Partners

Product Updates

DatoCMS changelog for new features and general improvements
API ClientsPlugins
Ruby client and plugin SDK improvements
November 5th, 2020

On the Ruby gem, we've added the method #lqip_data_url, which lets you access the SVG blurred up version of your images, like so:

blog_post.cover_image.url(w: 800, h: 600, fm: :jpg)
# => "https://www.datocms-assets.com/123/12345-heart.png?w=800&h=600&fm=jpg"
blog_post.cover_image.lqip_data_url(w: 800, h: 600, fm: :jpg)
# => "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHBwgHBgoICAgXFQoLDhUSDhUXDh0eDRUVGRYZGBYTFhUaIi0jGh0oHRUWJDUlKC0vMjIyGSI4PTcwPCsxMi8BCgsLDg0OHBAQHDsoIig7Lzs7Ozs7Ozs7LzsvLy8vLy8vLzsvLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vL//AABEIAA0AGAMBIgACEQEDEQH/xAAYAAEAAwEAAAAAAAAAAAAAAAAAAwQFAv/EABwQAAAHAQEAAAAAAAAAAAAAAAABAgMEBRESQf/EABUBAQEAAAAAAAAAAAAAAAAAAAMB/8QAHREAAQMFAQAAAAAAAAAAAAAAAQAREgITITFCA//aAAwDAQACEQMRAD8AqPMJiF1o6jvlILkhlWU11aMMTU6j50UPHKcCmTJa1aXEnvoBdy3GmTNPgAwfTkpbNJ2F/9k="

For more details on what you can do, please have a look at this blog post.

On the Plugin SDK, we've added a new method plugin.disableField(...pathChunks, disable) that will let you disable a field so that the editors will be prevented to make changes.

Read all the details on the SDK reference.