What is a headless cms anyway?
The term ‘headless cms’ has been rising in popularity for a while now. But why the hype and what is it all about?
What is a headless CMS?
We’ll get to that. But first, it’s worth mentioning how traditional “monolithic” cms’s work. Wordpress or Drupal are usually included in this category. At monolithic cms’s, the modal layer is tightly coupled with the view, and the creators of the platform provide you with a templating engine with which you can implement your frontend. So in this model you’d have:
- a Database at the “bottom”, where you store your content
- an App, with a UI that lets you Create, Read, Update and Delete this content
- and a View layer which displays the content (usually by using templates)
Older versions of sensenet ECM are also following this philosophy, although the platform is more geared towards enterprise features, such as content versioning and collaboration. Thus, the ‘E’ in ECM is for Enterprise.
In a headless CMS (or ECMS for that matter), though, the backend does not care about how the content is displayed. It just returns with the data needed for the frontend through a RESTful API.
So is sensenet ECM a headless or a coupled CMS?
As mentioned earlier, using sn-webpages, you can have a full-featured ECMS solution, complete with a built-in UI. We are also working on a new UI, using React and Aurelia while fully utilizing sensenet ECM’s OData layer, which provides a complete, flexible and extendable RESTful API.
In the end, what you get is something like this:
After installing our library from npm, you can import it and connect to your sensenet ECM instance.
Once done, you can start working with content e.g. fetching them for using the results as a sn-client-js Collection
The collection is ready, so you can start working with your favourite framework to render the article list.
As simple as that. We are at the beginning of our roadmap and we need your feedback in making a better ECMS development platform. So feel free to chime in either through e-mail, gitter or by sending a homing pigeon. We are eager to hear your voice.
This post was originally published on the official blog of Sense/Net Inc.