cms

package
v1.801.466 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cms declares the Hanzo CMS content model as DocType fixtures on the framework engine (clients/framework). CMS is NOT a bespoke subsystem and mounts NO HTTP surface of its own: a "collection" IS a framework DocType in module "cms", a content entry IS a framework document, media IS an Attach-backed document, and publishing IS a status field. All CRUD, permissions, tenant isolation, and install are the framework's generic, already-live surface (/v1/framework/*). This package only DECLARES the fixtures and registers them with the engine at init — the ONE source of truth for the CMS content model, per-org on Base/SQLite.

This is the first app lane on the framework and the template for the rest: ERPNext DocTypes and Helpdesk register their fixtures the same way (framework.RegisterModule) and are installed + rendered by the SAME generic install path and the SAME generic @hanzo/ui DocType renderer. One engine, one renderer, every business app.

Index

Constants

View Source
const Module = "cms"

Module is the framework module tag every CMS DocType carries. The console's CMS surface is the generic DocType renderer scoped to this module.

View Source
const RoleContentEditor = "Content Editor"

RoleContentEditor is the editorial role the CMS content DocTypes grant read/ write/create/delete. The org owner (System Manager, seeded trust-on-first-use) assigns it to teammates via /v1/framework/roles; a role-less member stays denied (secure by default). Publishing is a status write, so it needs no extra right.

Variables

This section is empty.

Functions

func DocTypes

func DocTypes() []framework.DocType

DocTypes returns the canonical CMS content model — the default collections an org gets when it installs the CMS lane. Order matters only for readability; Link targets are resolved at document write, not at define, so a DocType may reference another that is defined later in the set.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL