Outside the Box? What Box?

I was one of those kids who listened carefully when the adults were talking. I took in as much as I could, trying to understand the world around me. Every now and then I’d hear someone refer to…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Why Go for a Headless CMS?

There are times when technology advances and is adopted by developers but the applications and tools built are a step backwards for the end users. Take electric cars, for example. When electric engines were first introduced to power vehicles, drivers couldn’t drive as fast or as far between re-fuelling. Today, electric-engine technology has finally caught up and is starting to surpass its gas-powered predecessor but the end users had to suffer through a period of adoption and transition. A second example, and the focus of this article, is the ‘headless CMS‘ where development teams have opted to throw away a lot of the CMS platform features used by content editors in the favour of using their preferred technologies to build the solution. Before we detail why this is happening and what CMS vendors are doing to address the problem, it is useful to understand the differences and respective advantages of a headless and non-headless approach.

In a headless CMS configuration, there is a technology separation between the platform presenting the content, for example a website or mobile app, and the platform which enables content management, storage and delivery. The diagram below describes this model.

Some of the advantages of a Headless CMS include:

A headless CMS can be contrasted against a ‘non-headless’ configuration where the platform additionally takes on the application and presentation concern and, due to the tight integration of these components, is able to offer content editors a host of useful features.

A non-headless CMS, also referred to as a Monolithic CMS or Coupled CMS, is a configuration where the platform presenting the content and the platform managing the content are one and the same. The diagram below describes this configuration.

Some of the advantages of a Non-Headless CMS include:

With all these advantages, why go headless?

Despite all of the advantages listed above, the headless approach is a popular choice in technology teams because it allows development teams to choose their own application platform and presentation layer technology. One technology used to build web applications that is becoming widely adopted by the front-end development community is Single Page Applications. (SPAs).SPAs are applications which run inside the browser and communicate back to the server via APIs. In SPAs, the browser works as an application run-time and handles all aspects of the application lifecycle, including: rendering, application logic, state and error management, and routing the user to different section of the application, all without having to have the browser post back to the server. Today, front-end developers have a penchant for SPA frameworks because they have introduced an modern set of engineering patterns, practices and tooling into their discipline which promotes quality, efficiency and effectiveness. The downside of this development goodness, in the case of headless CMSs and SPAs, is that the technology separation results in the loss of CMS features such as on-page editing and personalisation. Because of this CMS Vendors have suffered because they now have vestigial features, and Content Editors have suffered because they cannot use these features that are integral in their jobs.

CMS Vendors are responding to this disconnect and finding ways of re-introducing the lost features if the platform is implemented in a headless configuration. Most major CMS vendors are starting to offer different technology solutions. Sitecore have a new SDK called SiteCore JavaScript Services (or, slightly confusingly shortened to JSS). Adobe AEM supports headless configuration, although hasn’t yet published how it supports features such as On-Page edit, personalisation, tracking and analytics. Another CMS Vendor tackling this problem is Episerver, an Enterprise CMS and Commerce vendor and partner at BIO. BIO recently attended the Episerver Ascend Event, their annual user conference, to dig deeper into their approach.

The diagram below details the interactions between content editors, end users, the editor interface, the SPA and the Episerver Content Delivery API, and how features such as On-Page editing are supported.

In this diagram, an application built using an SPA framework uses the Content Delivery API as a source of the content. The SPA could use any framework such as Angular, React or Vue.js.When the end users use the application they are in fact using a SPA which pulls content from the content delivery API.When Episerver edit mode is introduced it gets very interesting. Editors interact with edit mode using on page edit as they normally would and update content using the on page overlays (as shown above).When content is updated it is saved down to the Episerver content repository and exposed via the content delivery API. However the SPA updates to show the updated content when it has been changed by the editor in Episerver edit mode meaning the editor is editing a SPA using on page editing and previewing the result.The ability for the SPA to update when content has been changed in the Episerver UI is facilitated by topics which are published to let the SPA know that content has been changed.

It is great to see CMS vendors such as Episerver starting to allow their content editing features to be included in headless architectures. These features are an important requirement for content editors and taking them away due to a technical evolution is a step backwards. Furthermore, preventing technology partners from developing using modern tools and frameworks is also not a viable option for any platform vendor. What is clear is that SPA frameworks are here to stay and if CMS vendors are going to please both their end users (content editors) and developers, they need to provide elegant technical solutions that deliver on both fronts.

Useful Links:

We’re an award-winning digital agency consulting and delivering on customer experience-led innovation and transformation.

Add a comment

Related posts:

Merger of Banks

Banks are the institution responsible for the socially justified liquidity of cash. The rising NPAs (non-performing assets) have raised questions on the PSBs. There is a need felt for the radical…

Where to Buy Instagram followers

There are some people on Instagram who deliberately misrepresent their followers, engagement, and influence. They are not only deceiving their followers, but they’re also causing brands a lot of…

Best Google Analytics Services IN New Delhi

Why is Google Analytics essential to SEO? Google Analytics is an extremely useful tool when it comes to SEO. The search engine that people use to find your website is handing out useful nuggets of…