CSE_CMS v2 — Overview & Architecture
CSE_CMS v2 is a modern ground-up rewrite of the original database-free, folder-driven CSE_CMS created in 2008.
It keeps the exact same core philosophy: your filesystem is your website. Folders become navigation menus and URLs; plain text, HTML, and Markdown files become web pages — managed effortlessly via FTP or local files, with no database and no external libraries or CDNs.
Core Principles
- Zero Database: Everything lives as ordinary files and folders. Backups are just copying a folder.
- Zero External Dependencies: Pure PHP 8.2+ on the server and vanilla HTML5/CSS3/JS in the browser. No Composer packages, no frameworks, and no third-party CDNs — making it virtually maintenance-free for years.
- Native Multilingual Support: Top-level 2-letter folders (
en/,fr/,de/, or any language you add) define language trees, linked together via optionalCSE_translatefiles. - 100% Backwards-Compatible Content: Existing v1 articles,
CSE_contenthomepages,CSE_Gallery.txtphoto galleries,.linkaliases,.embed/.exbedframes,CSE_hotfeatured links,CSE_lockprivate folders, plugins, and historical statistics all work seamlessly. - Strict Separation of Content, Structure, and Style: Content (
en/,fr/,de/), Layout Templates (templates/), and Visual Themes (themes/) are independent files that visitors can even mix and match on the fly.
High-Level Request Flow
- Apache
.htaccessroutes all page URLs (at any folder depth) to a single front controller (index.php), while serving static assets (assets/,media/,themes/, and gallery images) directly and blocking direct web access to internal/config files. - Router extracts the language code and resolves either a special route (search, plugins, statistics, sitemap, theme/template switch) or a content path.
- Content Repository safely resolves the target folder or file inside the language root, checks any
CSE_lockaccess rules, and renders Markdown (.md), HTML, custom folder layouts (CSE_content), or photo galleries (CSE_Gallery.txt). - Renderer combines the rendered body, dynamic Table of Contents, breadcrumbs, and sidebar widgets into the active Template (
templates/<name>/layout.php) styled by the active Theme (themes/<name>/theme.css).