Three important reasons for having composable entries

Published on April 25, 2018

Composable Entries

Composable entries is a term we use internally to describe pages that includes content composed from smaller chunks of content. Our customers call these chunks "blocks", “modules” or “sections”. This blog post outlines three important reasons why composable entries is a good approach to self-service page building.

1. Content creators want more control over the layout of the page

Adding content in static forms with specific fields using specific word limits that correspond to specific paragraphs in a predesigned page doesn’t work for everyone. It’s logical that some authors want more control on the narrative of the page and they can only achieve that if they have more control on a larger part of the page.

2. Developers, on the other hand...

Developers, on the other hand, don’t want to give them full control of the layout as, in traditional terms, this would mean either allowing HTML input or installing some kind of WYSIWYG editor. Both are options that can go wrong in the view rendering step, as user-added-code might conflict with the application’s code.

3. Designers need a consistent experience

Designers, also, need a consistent experience across all user-created pages so that this provided freedom to the authors doesn’t result in thousands of variations of the same thing. I mean just imagine how this setup might evolve if you have an editorial team of 50 authors — each creating a page a day.

This healthy tension between all three sides brought the creation of this "blocky" singular unit of page configuration which the team creates together and the editor is free to pick from a library, populate it with content, combine it with other blocks and compose their page like that — one block at the time.

How do composable entries work in Contentful?

As Contentful is built with structured content in mind, this setup is easily reproducible. Let’s take an example content model of a page article.

Your page will have all the typical fields, like title, featured image, category, creator but the difference is in your Body field, where, instead of having a single blob field for your page’s content you create a Reference field which can link to multiple Content types, which represent your blocks.

Here are some examples of Content types that we’ve seen in the wild:

By enabling the "Bulk editing" feature for the Body field you will then be able to edit all these references at once:

1

Then, when your author builds up a page, she can add a new entry and link it to the parent entry, reorder it, alter it and publish it.

2

Spicing things up

Even though this might sound cumbersome, especially if you are "building" a simple page that only has text, images and video, things become more efficient if you try to do something more complex.

Let’s choose the example of a Slider, let’s say relevant news that you allow the user to swipe through in the form of injected cards, a usually good opportunity for advertisement:

By enabling the page’s Body field to link this too, you can then start creating really rich pages that are more than just text and images. Think, sliders, fly-in information, intricately laid out image galleries and even A/B tests with your optimization service of choice.

The rise of design automation

We talked about the content editing side of things, but what about the design and coding side of your app? Starting from the design side of things, we have seen some best practices by digital teams that have applied this set up as part of their Design Ops.

Design Ops is "the practice of reducing operational inefficiencies in the design workflow through process and technological advancements" as Andy Budd of Clearleft says in his introductory article of this term. One of these technological advancements is the adoption of a pattern library, a code-focused version of a design system, which serves as a common place for developers, designers and, of course, content creators to see, discuss and shape how these building blocks look and function like.

The benefits of using a design system is that you get faster time to market by reducing friction on making design decisions or automating some of them.

3

What a design system might look like

For example, a non technical user might need to create a new landing page. They can now see what building blocks they can use, from the pattern library:

4

Then, they can combine them in various combinations to come up with the best combination, or even try out some of these and experiment:

6

By pairing these components to Contentful content types, the compositional interface is now in place:

7

There you have it, a self service page building that doesn’t drive your teammates crazy.

Subscribe for updates

Build better digital experiences with Contentful updates direct to your inbox.

Spiros Martzoukos

Spiros Martzoukos

Product Manager

Spiros was a Product Manager at Contentful.

Related articles

Developer Showcase Highlights
News

10 terrific projects from the Developer Showcase

October 20, 2022

Live preview enables teams to see their content in context and optimize in real-time, so creation comes to life as envisioned for a variety of experiences.
News

See your content come to life with live preview

May 22, 2023

The Contentful Developer Hero Program is a cool new initiative to recognize, support and empower the most passionate and talented developers in the community.
News

Announcing the Contentful Developer Hero Program

August 1, 2024

Contentful Logo 2.5 Dark

Ready to start building?

Put everything you learned into action. Create and publish your content with Contentful — no credit card required.

Get started