Headless CMS: Custom Wagtail Image Serializer
View Post
Learn Wagtail Course

Headless CMS: Custom Wagtail Image Serializer

Using Django Rest Framework with Wagtails v2 API, we can customize ANY field the way we want. In this short video, we take a look at creating a new field entirely by overwriting an image, but we also look at serializing (JSONifying) an image field from a ForeignKey inside an Orderable. Don't worry, it's not as crazy as it sounds!

33_headless_cms_wagtail_api_fetching_data.png
View Post
Learn Wagtail Course

Headless CMS: Fetching Data From the v2 API

The Wagtail v2 API is how we can turn our website into a Headless CMS. By default Wagtail will give you specific fields in the form a JSON object. But there are times when you only want certain fields; you might want to exclude or include specific fields in the JSON response. In this tutorial, we'll explore exactly how to do that.

31_enabling_wagtail_headless_cms_v2_api.png
View Post
Learn Wagtail Course

How to Enable the v2 API to Create a Headless CMS

Wagtail comes with a lot of really powerful features. Many features are not enabled by default as to keep your site running quickly and efficiently. One of those amazing features is the Wagtail v2 API, which can return any page, image, document, orderable and StreamField as a JSON response for your SPA/PWA to consume. We'll enable this by adding just 12 lines of code to our Wagtail CMS website.