Websites & Hosting

What Is a Content Management System?

Learn how a content management system stores, edits and publishes pages, what types exist and what running one involves.

Key takeaways

  • A CMS keeps content, design and features apart, so non-programmers can publish.
  • Most systems store content in a database and build pages from templates, either on request or ahead of time.
  • Traditional, headless and file-based systems suit different teams and goals.
  • Themes and plugins add power and also add upkeep and security risk.
  • Choose by editing experience, maintenance effort and how easily your content can leave.

A content management system, or CMS, is software that lets you create, organize and publish website content through an editing screen instead of by writing page code. You type an article into a form, press publish, and the system fits it into the site's design, adds it to menus and lists and makes it available to visitors.

The idea that makes this work is separation: content is stored apart from the design that displays it. Change the design once and every page follows.

The parts of a CMS

What a content management system brings together
The CMS Coordinates editing and publishing Plugins Added features Users and roles Who may do what Theme Templates and styles Editor Where people write and arrange Content store Usually a database Media library Images, documents and video The CMS Coordinates editing and publishing Editor Where people write and arrange Content store Usually a database Media library Images, documents and video Theme Templates and styles Users and roles Who may do what Plugins Added features

Content types describe what you publish: pages, posts, products, events. Each has fields, such as a title, body, image and date. Taxonomies, like categories and tags, group related items. A template says how a type is displayed.

What happens on publish and on view

In a traditional CMS, saving an article writes it to the database. When a visitor asks for the page, the system looks at the address, fetches the matching content, merges it into a template and returns HTML.

How a traditional CMS serves an article
Visitor Web server and CMS Database Request /articles/spring-planting/ 1 Find the matching content 2 Title, body, author and date 3 Return the themed, finished HTML 4 A cache can skip the database next time Visitor Web server and CMS Database Request /articles/ spring- planting/ 1 Find the matching content 2 Title, body, author and date 3 Return the themed, finished HTML 4 A cache can skip the database next time

Building every page on every visit is wasteful, so most setups add caching: the finished HTML is saved and reused until the content changes. A content delivery network can hold copies closer to visitors.

Kinds of CMS

Kind How it works Suits
Traditional (coupled) One system edits and displays Most blogs and business sites
Hosted platform The vendor runs the software for a subscription Owners who want no server work
Headless Stores content and serves it through an API; a separate front end displays it Teams with developers and several channels
File-based or static Content lives in files, pages are built ahead Documentation and small publications

WordPress, Drupal and Joomla are well-known open source examples of the traditional kind. Many hosted builders include CMS features. Specialized systems also exist for stores, courses and company intranets.

A static site generator can be paired with a friendly editing interface, which blurs the line between categories.

What a headless system changes

In a headless CMS, the "head", meaning the visible website, is removed. Editors still work in forms, but the system hands out content as data, often in JSON. Developers build whatever displays it: a website, a mobile app, a screen in a shop.

The advantages are reuse and freedom of design. The costs are that you must build and host the front end, previewing drafts takes extra setup and editors may lose the sense of how a page will look. For one ordinary website, a traditional system is usually simpler.

Roles and workflow

A CMS lets several people work safely. Typical roles include:

  • Administrator: settings, users and software.
  • Editor: manages and publishes anyone's content.
  • Author: publishes their own work.
  • Contributor: writes drafts that someone else approves.

Names and powers vary by system. Give each person the smallest role that lets them work, and remove accounts when people leave. Revision history, drafts and scheduled publishing help teams avoid overwriting one another and recover from mistakes.

Themes and plugins

A theme controls appearance. A plugin, module or extension adds features such as forms, search improvements or shopping. This is where a CMS gets its flexibility, and where many of its problems begin.

Before installing an extension, ask:

  1. Do I need it, or can the system already do this?
  2. Is it maintained, with recent updates and responses to reports?
  3. Does it come from an official directory or a vendor I can identify?
  4. What data can it access, and does it send data elsewhere?
  5. Can I remove it without losing content?

Never install paid themes or plugins from unofficial "free download" sites. Altered copies are a well-known way to plant hidden access.

Maintenance and security

A CMS is an application on the public internet with a login page, so it needs care.

  • Apply updates to the core, theme and plugins promptly.
  • Remove, not just deactivate, what you do not use.
  • Use strong unique passwords and two-factor sign-in for anyone who can publish or administer.
  • Keep the underlying language and database on supported versions.
  • Back up both the database and uploaded files, and test restoring them.
  • Limit repeated login attempts.

Builders of custom extensions should learn about SQL injection and cross-site scripting. If something does go wrong, what to do when your website is hacked gives an order of work.

Modeling content before you type it

The quality of a CMS site depends heavily on how content is structured. If an event is just a page with the date typed into the text, the system cannot sort events, hide past ones or build a calendar.

Make it a content type with fields instead:

Field Type Why it helps
Title Short text Used in lists and page titles
Start and end Date and time Sorting, and hiding finished events
Location Short text or reference Reused across events
Summary Short text Shown in listings and previews
Details Rich text The full description
Image with alt text Media Consistent display and accessibility

Do this for anything you publish repeatedly: products, staff profiles, job openings, recipes. Resist adding fields nobody will fill in. A half-empty field leaves holes in the design.

Moving between systems

Sooner or later you may switch. Page text usually exports reasonably well. Layout built with a particular theme or page builder often does not, and may leave odd codes embedded in the text. Custom fields, user passwords, comments and redirects each need their own handling.

Reduce the pain in advance. Prefer standard fields over layout tricks inside the body, keep original image files and note which features come from plugins. When you do move, map old addresses to new ones and set redirects, so links from elsewhere keep working.

Keeping content clean

A CMS makes it easy to publish and easy to accumulate. A few habits keep it usable.

Use heading levels in order instead of bold text made large. Fill in alternative text for images, as writing useful alt text describes. Set readable page addresses before publishing and avoid changing them. Decide on a short list of categories and stick to it. Review old pages periodically and update, merge or retire them.

Avoid pasting text straight from a word processor with its formatting attached, which can drag in messy markup. Paste as plain text and apply styles in the editor.

Do you need one?

A CMS pays off when content changes often, when people who do not code need to publish, when you have many similar items or when you need roles and approval.

You may not need one for a few pages that change twice a year. Hand-written files or a simple builder will do, with less to patch. The comparison of builders, CMSs and hand coding helps with that choice.

How to choose one

Try the editor with real content before deciding, and have the people who will use it do the trying. Then check:

  • Can it model your content without awkward workarounds?
  • Who will host and update it?
  • Is there active development and documentation?
  • What do the extensions you need cost, including renewals?
  • Can it export content and media in a usable form?
  • Does it produce accessible, reasonably light pages with a standard theme?

Run a short trial: create one of each content type, upload an image, give a colleague a limited account, then export everything and look at what came out. An hour spent this way shows more than any feature list.

Common problems and what causes them

Edits do not appear. A cache is still serving the old page. Purge the system's cache, then any CDN cache, and reload.

The layout broke after an update. A theme or plugin no longer matches the new core version, or customizations were made directly in theme files and overwritten. Restore, then repeat the update on a test copy.

The dashboard is slow. Too many extensions, a cramped hosting plan or a database full of old revisions and logs are the usual suspects. Disable additions one at a time on a copy to find the culprit.

Nobody can sign in. Password reset mail may not be leaving the server. Test outgoing mail early, and keep a documented recovery route through your hosting account.

Search engines show strange pages. Systems often create archive, tag and attachment pages automatically. Decide which are useful and configure the rest not to be indexed.

Where the hosting fits

A self-run CMS needs a host that supports its language and database, enough memory for its extensions and a way to schedule tasks. Some hosts offer one-click installation. Others specialize in a single system, handling updates and caching for a higher price, as with managed WordPress hosting. A hosted CMS platform includes all of this, in exchange for working within its rules.

Whichever route you take, the content is the asset. Keep your own copies of it, and the system around it can be replaced when your needs change.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Websites & Hosting →

Latest news on this topic