Starter Templates Since 3.5.0
Starters are pre-built site structures that give you a working site out of the box. Each one provides layouts, page templates, partials, a builder-pages collection, and page objects — everything needed for a working site immediately.
Quick Start
Section titled “Quick Start”# List available starterstcms builder:init --list
# Scaffold a business site (templates + pages + demo content)tcms builder:init business
# Scaffold + Vite frontend in one gotcms builder:init business --frontendThat’s it. There’s no generation step — the page router serves your routes dynamically from the collection data. Visit your site and pages render immediately.
After scaffolding, every starter ships with a /readme page (hidden from navigation by default) that walks you through the next steps in your browser. Delete it whenever you’re ready.
Available Starters
Section titled “Available Starters”Minimal
Section titled “Minimal”The simplest starting point — a single homepage with a warm, soft look: cream paper, rounded corners and a picture of colored shapes.
Pages: Home
Files created:
tcms-data/builder/ layouts/default.twig pages/index.twig pages/readme.twig partials/nav.twig partials/footer.twigpublic/assets/css/ style.css ← edit me (css/style.css with the Vite pipeline)Features:
- A hero picture of colored shapes, stored as the
heroobject in the Images collection. Upload your own picture there. - Colors kept as CSS variables at the top of
style.css
Best for: Starting from scratch with maximum flexibility.
Business
Section titled “Business”A professional business website in navy, blue and mint, with its services in a collection.
Pages: Home, About, Services, Contact
Files created:
tcms-data/builder/ layouts/default.twig pages/index.twig pages/about.twig pages/services.twig pages/contact.twig pages/readme.twig partials/nav.twig partials/footer.twigpublic/assets/css/ style.css ← edit me (css/style.css with the Vite pipeline)Features:
- A navy hero on the homepage, with the service cards rising into it
- Service cards and a Services page, both read from the
servicescollection in the order set on each service - A picture of colored shapes on each service
- Contact form template
- Professional navigation with dynamic page links
Best for: Small business sites, agency sites, service providers.
A blog-focused site with post listing and individual post templates.
Pages: Home, Blog, Blog Post, About
Files created:
tcms-data/builder/ layouts/default.twig pages/index.twig pages/about.twig pages/blog/index.twig pages/blog/post.twig pages/readme.twig partials/nav.twig partials/footer.twig partials/post-card.twig partials/post-lead.twig partials/post-row.twigpublic/assets/css/ style.css ← edit me (css/style.css with the Vite pipeline)Features:
- Homepage leads with the newest post and its picture, then shows the next few as cards
- Blog index lists all posts with their pictures, ten to a page
- Post pages with a large picture and a drop cap on the first paragraph
- Reusable post card partial
- Serif typography for readability
The starter installs the blog collection with five sample posts, each with a photo. The templates still work, without pictures, for posts that have none.
Best for: Personal blogs, content-focused sites, writing platforms.
Portfolio
Section titled “Portfolio”A dark gallery site for showcasing projects, with the projects in a collection.
Pages: Home, Work, About, Contact
Files created:
tcms-data/builder/ layouts/default.twig pages/index.twig pages/work.twig pages/about.twig pages/contact.twig pages/readme.twig partials/nav.twig partials/footer.twigpublic/assets/css/ style.css ← edit me (css/style.css with the Vite pipeline)Features:
- The projects ticked Featured on the homepage, the first one large
- Every project on the Work page, from the
projectscollection in display order - Skills tags on about page
- Contact form
Best for: Designers, developers, agencies, creatives.
What Every Starter Includes
Section titled “What Every Starter Includes”Layout (layouts/default.twig)
Section titled “Layout (layouts/default.twig)”A complete HTML5 document with:
<meta charset>and<meta viewport>{% block title %}defaulting tocms.config('domain'){% block description %}for SEO meta{% block head %}for additional head content{% block content %}for page body- Nav and footer partials included automatically
Navigation (partials/nav.twig)
Section titled “Navigation (partials/nav.twig)”Dynamic navigation using the builder nav function:
{% set pages = cms.builder.nav() %}{% for p in pages %} <a href="{{ p.route }}">{{ p.title }}</a>{% endfor %}cms.builder.nav() returns top-level pages that are published (not draft) and have navigation enabled (nav: true), in the order defined by the order file (.order.json). Your nav updates automatically when you add, remove, or reorder pages in the admin.
See Navigation for subnav() and navTree() functions.
Footer (partials/footer.twig)
Section titled “Footer (partials/footer.twig)”A simple footer with dynamic copyright year via {{ 'now' | date('Y') }}, the domain name, and a “Powered by Total CMS” link from cms.badge.text(). Swap it for another badge or remove it.
Stylesheet (css/style.css)
Section titled “Stylesheet (css/style.css)”Each starter ships a real CSS file rather than dumping styles inline in the layout. With the Vite pipeline it lands at css/style.css in the project root. Without it, it lands at public/assets/css/style.css. The layout loads it the same way in both cases, with the cms.builder.css() Twig helper:
{{ cms.builder.css('css/style.css') }}{# With Vite → <link rel="stylesheet" href="/assets/style-a1b2c3d4.css"> #}{# Without → <link rel="stylesheet" href="/assets/css/style.css?v=1714607400"> #}The helper resolves the path against your configured assets directory and appends an mtime cache-buster automatically — so when you edit the file, browsers pick up the new version on next load without manual versioning.
Without a build, this works immediately and shows you exactly the pattern you’d use for any other CSS, JS, font, or image asset. When you outgrow plain CSS, swap it for one of:
- Sass/SCSS compiled by your build tool
- Vite (run
tcms builder:frontendto install it) - Tailwind CSS
- Any other pipeline that emits CSS files
T3 does not own your CSS build pipeline — it just helps you reference whatever ends up in public/assets/.
Starter Data (jumpstart.json)
Section titled “Starter Data (jumpstart.json)”Every starter ships a jumpstart.json alongside its manifest.json. It is the single source of truth for everything the scaffold installs into your data store: page records, supporting schemas, supporting collections, and any sample objects.
| Starter | What jumpstart.json installs |
|---|---|
minimal | 3 pages (Home, Getting Started, 404) + the image collection with the home page’s hero picture |
portfolio | 6 pages (Home, Work, About, Contact, Getting Started, 404) + a project schema + a projects collection + 6 sample projects with photos |
blog | 6 pages + the reserved blog collection + 5 sample posts with photos (featured + categories + tags populated) |
business | 6 pages + a service schema + a services collection + 4 sample services with pictures (Strategy, Design, Development, Ongoing Support) |
The pictures are made during the import with factory rules: image(1600,900) downloads a photo from picsum.photos, and imageShapes(1280,720,e8edff|3b5bdb|3dd6a0) draws shapes in the starter’s colors. A photo that can’t be downloaded, on a server without internet access, is left out, and the pages show the post or project without it.
The pages appear in the nav and the admin sidebar in the order jumpstart.json lists them.
The import runs automatically as part of tcms builder:init. If it fails for any reason — schema conflict, disk error, etc. — the scaffold itself still succeeds (templates have already been copied) and you can re-run manually:
tcms jumpstart:import resources/builder/starters/blog/jumpstart.jsonFrontend Pipeline (--frontend)
Section titled “Frontend Pipeline (--frontend)”Every starter’s stylesheet works without any build step. To build it with Vite instead, add one flag during init:
tcms builder:init business --frontendOr add it after the fact. Move the stylesheet out of public/assets/ first, because the first build wipes that folder:
mkdir css && mv public/assets/css/style.css css/style.csstcms builder:frontendBoth install the same Vite pipeline at the project root, and the layout doesn’t change. See builder:frontend for the full reference.
Customizing After Scaffolding
Section titled “Customizing After Scaffolding”After running builder:init, you own all the template files. Common next steps:
- Edit the stylesheet — open
css/style.cssand runnpm run build, or editpublic/assets/css/style.cssif you don’t use the Vite pipeline. The layout already loads it via{{ cms.builder.css('css/style.css') }}. - Edit page templates — replace placeholder content with
cms.*calls to your collections - Add more pages — create new page objects in the admin under Site Builder
- Reorder pages — use the admin’s drag-drop reorder mode to set the navigation order (see Reordering Pages)
- Create partials — extract repeated patterns into
partials/templates
No build or generate step is needed — the page router serves your routes from the live collection.
Sharing a Whole Site as a Starter
Section titled “Sharing a Whole Site as a Starter”The starters above scaffold templates and demo pages into a site you already installed. To share a finished site instead (templates, schemas, content and settings) as a project others install in one step, export it with tcms starter:export:
tcms starter:export ~/Developer/starter-restaurant --name=yourname/starter-restaurantCommit the output to its own repository and publish it on Packagist. Anyone can then install it with composer create-project yourname/starter-restaurant mysite, and the setup wizard creates their admin account on first visit.
To let people look around the finished site before they install it, put a copy online in demo mode: anyone can open its admin without signing in, and nothing they change is saved.
Creating Custom Starters
Section titled “Creating Custom Starters”Starters live in resources/builder/starters/{name}/. Each starter needs:
manifest.json
Section titled “manifest.json”The manifest describes the starter for the picker UI — name, description, version. That’s it:
{ "name": "My Starter", "description": "A description of what this starter provides", "version": "1.0.0"}jumpstart.json
Section titled “jumpstart.json”The starter’s pages and any seed content live in jumpstart.json, in the standard JumpStart format. List the page records first, in the order you want them to appear in the navigation:
{ "name": "My Starter Data", "description": "Pages + sample content for the starter", "version": "1.0.0", "objects": [ { "collection": "builder-pages", "id": "home", "data": { "id": "home", "title": "Home", "route": "/", "template": "index", "draft": false, "nav": true, "data": {} } }, { "collection": "builder-pages", "id": "about", "data": { "id": "about", "title": "About", "route": "/about", "template": "about", "draft": false, "nav": true, "data": {} } } ]}Each page object maps to a builder-page schema record. Required fields inside data: id, title, template. Useful optional fields: route, draft, nav. The inner data: {} is the page’s free-form JSON data field (exposed at render time as page.data.*) — pass an empty object to satisfy schema validation, or fill it with per-page hero text / CTAs / etc. The schema also supports description, image, status, redirectTo, sitemap, changeFrequency, and priority — set them per page in the jumpstart if you want them pre-populated.
Page order in the admin sidebar follows the order of objects in jumpstart.json (the page router preserves insertion order in the collection index).
To install supporting schemas, collections, or other objects (e.g. a services collection alongside the pages), use the standard JumpStart sections — schemas, collections, and additional objects for non-page records. See the business starter for a worked example.
Template Files
Section titled “Template Files”Organize templates in the standard directory structure:
my-starter/ manifest.json jumpstart.json layouts/ default.twig pages/ index.twig about.twig partials/ nav.twig footer.twigFiles are copied directly to tcms-data/builder/{category}/. Page templates use {% extends 'layouts/default.twig' %} directly — there’s no layout field on pages.