Search by

uams-web / aether-reusable-content

joshdaughertybpmore

Reusable content for UAMS Statamic sites, packaged as a Statamic add-on.

Package info

github.com/UAMS-Web/aether-reusable-content

Language:JavaScript

Type:statamic-addon

pkg:composer/uams-web/aether-reusable-content

Statistics

Installs: 592

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-11-29 02:24 UTC

This package is auto-updated.

Last update: 2026-12-01 14:54:38 UTC


README

A Statamic add-on for the reusable content UAMS sites share. Reusable content is the reusable_content collection and what it needs, packaged so any UAMS Statamic site can install it instead of carrying its own copy.

The add-on serves the reusable_content collection's two blueprints (reusable_content_basic_page and reusable_content_landing_page) under their existing handles, the two query scopes and the reusable_content_entry tag that serve them, and the page builder's Reusable Content block and Bard set with the views that render them. The block and set are registered with uams-web/aether-page-builder at boot, and the page builder's blocks.disabled and sets.disabled config lists can turn either off by handle. A view of the same name in the host's resources/views wins over the add-on's. The decision to give reusable content its own add-on is recorded in docs/DECISIONS.md.

Requirements | Installation | Configuration | Development | License

Requirements

  • PHP 8.4 or later
  • Statamic 6.35 or later
  • uams-web/aether-page-builder, which provides the aether_page_builder and aether_article_with_sets fieldtypes the blueprints use, and the registry the block and set register with. A page builder release that still ships the same block and set (v0.1.0 does, with identical fieldsets and views) keeps the handles, and this add-on registers its own copy only when the registry does not hold them.
  • A host fieldset named uamsweb_computed_content_usage, which both blueprints import by that handle for their read-only in_use and used_by fields. It is shared with the tables and calculators collections and stays in the host. The add-on's tests use a stub copy under tests/fixtures/host-fieldsets.
  • The statamic/cms patch statamic-blueprint-namespace-slash.patch from uams-web/patches-statamic-cms, until statamic/cms#15881 ships: without it, listing the collection's blueprints from the add-on fails with "Undefined array key 0".

Installation

composer require uams-web/aether-reusable-content

The package is not on Packagist yet, so until it is listed the install needs the repository added to the host's composer.json (see the development guide for the path-repository form used while developing).

Configuration

The add-on ships config/aether-reusable-content.php, which has no settings yet. The collection itself, its fields and its routes stay in the host's content and config/statamic/ files. A host publishes it to its own config/ directory with:

php artisan vendor:publish --tag=aether-reusable-content-config

Development

composer ci runs the gate: the repository guards, Pint, Rector, Larastan and the Pest Unit and Integration suites.

License

MIT. See LICENSE.