Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.99 KB

File metadata and controls

47 lines (33 loc) · 1.99 KB

workflow-plugin-cms

⚠️ Experimental — This plugin compiles and passes its unit tests but has not been validated in any active GoCodeAlone-internal production deployment. Use with caution. Please open an issue if you adopt it so we can promote it to verified status.

License Go Reference

Multi-tenant CMS engine for the workflow engine. Foundation plugin of gocodealone-multisite.

What it provides

  • Tenant resolver (cms.tenant_resolver) — Host header → tenant_id; unknown domain → 404 neutral.
  • Static-wins routing (cms.static_serve_before_dynamic) — static files match before any CMS route is considered.
  • CMS engine (cms.engine) — page CRUD, dynamic-section render, theme resolver, bundle fetcher, ingest webhook, upload handler.
  • Analytics injection (analytics.injection) — per-tenant Google Analytics injection delegated to workflow-plugin-analytics.
  • Pipeline stepsstep.cms_render_page, step.cms_bundle_activate.

Status

v0.1.0 — first releasable CMS plugin build. Includes tenant resolution, static-before-dynamic serving, CMS page CRUD/rendering, bundle activation, analytics HTML injection helpers, audit-chain recording for admin writes, and strict plugin contracts.

Install

# wfctl.yaml
plugins:
  - name: workflow-plugin-cms
    version: v0.1.0
    source: github.com/GoCodeAlone/workflow-plugin-cms
wfctl plugin install

Local development

git clone https://github.com/GoCodeAlone/workflow-plugin-cms.git
cd workflow-plugin-cms
GOWORK=off go build ./...
GOWORK=off go test ./...

License

MIT. See LICENSE.