Collections

Build a content block once. Embed it across every site.

Widgets and collections are reusable content units. Update centrally, republish once, and every embed reflects the change — in staging or production.

Collections documentation →

Shared vs. embedded

RuleCMS supports both centralized updates and per-widget independence.

Shared collections

Reference a collection from multiple widgets. Update and republish once at the central place — every widget referencing it updates in that environment.

Embedded collections

Copy a collection into a widget when you need independent versioning. Teams choose shared vs. embedded based on their content model.

How a collection travels

Build the card once, then drop it shared so every page points at one source. Embed a copy when one hero needs a private variant.

  1. Step 01

    Build the card

    Rows, an image, and a price. An empty collection cannot be dropped onto a page.

  2. Step 02

    Save the collection

    The card becomes one reusable block in this environment.

  3. Step 03

    Drop it shared

    The homepage, the catalog, and the German hero all point at that one card.

  4. Step 04

    Embed a copy

    The sale hero gets a private variant. The everyday card does not change.

  5. Step 05

    Publish the parent

    A shared card updates every widget that references it. The embedded copy stays put.

Delivery surfaces

Embed published content wherever your users are — web apps, marketing sites, or internal tools.

  • Headless content API for any framework or language
  • Hosted render pages for zero-code embeds
  • @rulecms/widget-react React SDK
  • Integration guides for popular JavaScript frameworks

Embed with the React SDK

HomepageHero.tsxTSX
import { RuleCMSWidget } from "@rulecms/widget-react";export function HomepageHero() {  return (    <RuleCMSWidget      publishedKey="your-widget-key"      ...    />  );}

Prefer fully headless? Use the content API instead — the universal integration path for any framework:

fetch-widget.jsJS
// Fetch published widget content via the headless APIconst widget = await fetchPublishedWidget({  publishedKey: "your-widget-key",  token: "your-environment-token",});// Returns published JSON ready to render in any framework

Update the homepage banner across all your sites in one publish. Learn more in the collections documentation and the developer guide.

Create once. Embed everywhere.

Reusable collections with central republish — no duplicate content management.