Keep your site. Add the CMS.
Total CMS does not need to own your website. Drop it into the pages you already have, design in the web builder you already use, let Site Builder render everything, or run it headless — the content lives in one place either way.
Most content management systems arrive as the website: their router answers every request, their theme renders every page, and your choice is to build inside them or go headless with a second application in front. Total CMS is built the other way round: it manages the content, and the front end is yours to choose.
Four ways in, mixed as you like
- Inside pages you already have. Initialize Total CMS at the top of any PHP file, add Twig tags where the content belongs, and call
processBufferMacros()at the end. Your markup, CSS and URLs are left alone. - In the web builder you already use. Design in Stacks, Pinegrow, Bootstrap Studio or anything else that outputs HTML, then mark what your client should edit with Total CMS tags. The layout you built is the layout that ships. Stacks adds dedicated stacks for every content type and deployment built in. See every supported design tool.
- With Site Builder. When you would rather Total CMS render the whole site, Site Builder routes pages and renders Twig templates with no build step.
- Headless. The REST API reads and writes on every edition for same-origin requests; Pro adds API keys so a separate front end or service can authenticate.
Not a rebuild, and reversible
- Hand-coded sites. One page can gain an editable blog this afternoon; the other twenty stay untouched.
- Visual-builder sites. They keep their design.
- JavaScript front ends. They stay, pointed at the API.
- Reversible both ways. The content sits in plain JSON files on your server, and the front end was never tied to the CMS. Change how the site is built and the content does not have to move.
In practice
What it looks like in your own code
<?php
require_once __DIR__ . '/../vendor/autoload.php';
$totalcms = new TotalCMS\TotalCMS();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ cms.text('sitetitle') }}</title>
{{ cms.assetsHead() }}
</head>
<body>
<!-- Your existing markup stays exactly as it is -->
{% for post in cms.collection.objects('blog') | slice(0, 3) %}
<article>
<h2>{{ post.title }}</h2>
<p>{{ post.summary | striptags | truncate(150) }}</p>
</article>
{% endfor %}
{{ cms.assetsBody() }}
</body>
</html>
<?php echo $totalcms->processBufferMacros(); ?>
An ordinary PHP page with Total CMS content dropped in: initialize at the top, Twig where the content goes, render at the end.
At a glance
What you get
- Twig inside your own pages
- Initialize Total CMS at the top of a PHP file, write your HTML as usual, and Twig tags render where the content goes. No theme to adopt, no routing taken over.
- Any web builder
- Design in Stacks, Pinegrow, Bootstrap Studio or anything that outputs HTML, then mark what your client edits. Stacks adds dedicated stacks for every content type.
- Or the whole site
- Site Builder routes pages and renders Twig templates when you want Total CMS to handle the front end too, with nothing to build or deploy.
- Headless when you need it
- The REST API reads and writes on every edition for same-origin requests. Pro adds API keys for external front ends and services.
Works with any front end
Common questions
Do I have to rebuild my site to use Total CMS?
No. Initialize Total CMS at the top of any PHP page and add Twig tags where the content should appear. The rest of the page — markup, styles, URLs — stays as it is, so you can add a CMS to one page at a time.
Can I use Total CMS with a JavaScript framework?
Yes, through the REST API. It reads and writes on every edition for same-origin requests; Pro adds API keys so a front end or service on another origin can authenticate.
What does my page need to run?
A PHP file on the same server as your Total CMS install, which needs PHP 8.2 or later. A plain .html page becomes a Total CMS page by renaming it to .php and adding the initialization line at the top and the render call at the end.
Try it on a site of your own.
45 days, every Pro feature, no credit card. Build it, hand it to a client, and see what they can and can’t touch.