Contentful migrations: Add validation to slug field and update existing values

by Magnus Sigvartsen

Adding custom validations to a slug field in Contentful and updating existing faulty values using Contentful migration scripts and Contentful CLI…

Lagring av data i Contentful. Nå i EU!

by Magnus Sigvartsen

Contentful tilbyr nå datalagring i EU, med servere i Dublin og backup i Frankfurt, for å styrke GDPR-overholdelse. Denne funksjonen er tilgjengelig for "Premium plan"-kunder. Noen begrensninger gjelder.…

Creating a customized view of Contentful checkbox

by Kenneth Sætereng

My goal with this app was just to be able too show a normal checkbox instead of two radio buttons for the Boolean fields in Contentful, after one of my colleagues reached out to customer support with the response: - Thanks for reaching out to support. Currently the field appearance…

Building dynamic URL structures with Contentful and Nextjs

by Magnus Sigvartsen

Set up a parent/child URL structure using Contentful, and resolve the URL and build up the static paths in Nextjs.…

Use Contentful's image processing to give every user the best image for their screen size

by Bjarte Aune Olsen

With responsive websites, the same image can be displayed on screens ranging from several thousand pixels wide down to a few hundred. It is a lot of wasted bandwidth if the user on a tiny mobile screen has to download an image 2000 pixels wide, only to display it as…

Contentful migrations: Copy content from one entry to another

by Bjarte Aune Olsen

In Contentful, the easiest way to change your content model is through the web app on app.contentful.com. This is pretty straightforward if you are doing basic changes like adding a new text field. However, if you are planning more complex changes, migration scripts are probably the best way…

Contentful: How to avoid messing up your production content using environments

by Bjarte Aune Olsen

I have a web application with a separate test and production environment. I'm changing the content model, and I want to try out this new feature in my test environment without messing up the content in production.…