Headless CMS for Marketers: Deep Dive into Edit Mode Anywhere
Jun 20, 2019
By: Alexandra Barcelona
One of the major issues that marketers, content authors, and brand managers face comes about when they work with content management systems (CMS) that are not as intuitive or as user-friendly as they would like—which is a growing issue now that more brands are adopting headless CMSs.
These systems may have inefficient user interfaces (UI) or limited content editing and previewing capabilities. Without the features and resources that marketers have become accustomed to, content creators can encounter difficulties in delivering the effective content that their users expect, and upon which their businesses rely.
dotCMS 5.1, shows the continuing commitment to dotCMS’s “NoCode” strategy, which seeks to empower marketers through codeless interfaces, thus reducing the burden on developers who would otherwise have to step in to help create, edit, test, and release content.
The newest feature for marketers, Edit Mode Anywhere, helps them reclaim control of their content, even in a headless environment, without relying on IT.
What is Edit Mode Anywhere?
Edit Mode Anywhere gives content creators the full capabilities to edit content that extends to externally developed applications via dotCMS. This includes single page applications (SPAs), progressive web applications (PWAs) and any other frontend applications that has been built using dotCMS' Layout as a Service API
Content authors can carry out all the major tasks involved in the editing process, from inline editing and content personalization, to layout and module design, all without needing to understand a single line of code.
Why Did We Build It?
A major difficulty many content creators face involves determining how their content will appear on different platforms before it goes live.
For instance, the content shown on SPA on a smartphone screen will have a different look than when it displayed on laptop or even a tablet device. The eventual aim of the Edit Mode Anywhere functionality that was introduced in dotCMS 5.1 is to allow content creators to preview and manage how their content will look on different online channels, regardless of whether the user views that content on a smartphone, kiosk, or Internet of Things (IoT) capable device, all via a single and accessible platform.
How It Works
Content administrators can enable Edit Mode Anywhere on a site-by-site basis for all sites using dotCMS 5.1. This feature allows administrators of multiple sites to determine which sites would benefit from this mode. For sites enabled with Edit Mode Anywhere, these sites will proxy the request for remote rendering on the server side. At this point, dotCMS will send an HTTP POST request to the server to render the content, including all Layout as a Service (LaaS) page information.
When the request reaches the server, it takes in the POSTed LaaS data and renders the content and layout on the server side. After the content is rendered in “edit mode”, the server sends the content back to the dotCMS system. This content includes the dotCMS DOM markup required to enable the dotCMS edit mode. The dotCMS DOM markup dictates such factors as the layout, containers, images, fonts, and text content. Content authors can view the edited content by clicking on the API button in Edit Mode.
Single Page Applications, MPAs, PWAs and Edit Mode Anywhere
Numerous popular websites, including Facebook, Twitter, and Gmail, work as an SPA. While a traditional multi-page application swaps out the entire page according to user requests, a single page application carries all the content on one page, but dynamically swaps out the content it displays to the user based on their requests. SPAs have become incredibly popular for both developers and users, as they have simpler directory structures and faster load times.
Pages and Routes
In the paradigm established by dotCMS 5.1 and Edit Mode Anywhere, each page within an SPA functions as a route to the content within the SPA, which gets displayed as a stand-alone page based on the user requests. Content authors can use dotCMS 5.1 to give the page a title and URL, assign it to a folder, and give it a template to display the content. The author can then add other functions, other containers, and various content.
Edit Mode Anywhere and eCommerce
The Edit Mode Anywhere in dotCMS 5.1 not only allows content creators to deliver pages, but they can also drop layouts into third-party systems, such as eCommerce sites. All of the necessary layouts can be configured from dotCMS 5.1 and can be delivered into the eCommerce application.
For example, content authors can use the dotCMS platform to structure a product catalog page, as well as promotional banners featuring specific products. The Edit Mode Anywhere functionality lets content creators place those banners in the spaces between the rows displaying each product.
Edit Mode Anywhere: Deep. Powerful. Easy.
The Edit Mode Anywhere functions allow users that may not have extensive experience in coding or database management to manage content, layouts, and fast-moving SPAs, all in a headless CMS environment. On top of the SPA, the new version of dotCMS will also include an OSGI-based plug-in that will handle the delivery of the Edit Mode Anywhere feature and enable users to access and edit their content from anywhere.