uams-web / aether-reusable-content
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
Requires
- php: ^8.4
- statamic/cms: ^6.35
- uams-web/aether-fieldtypes: >=0.1 <1.0
- uams-web/aether-page-builder: >=0.1 <1.0
Requires (Dev)
- cweagans/composer-patches: ^2.0
- driftingly/rector-laravel: ^2.6
- larastan/larastan: ^3.13
- laravel/pint: ^1.32
- orchestra/testbench: ^11.3
- pestphp/pest: ^5.3
- pestphp/pest-plugin-phpstan: ^5.2
- rector/rector: ^2.7
- uams-web/patches-orchestra-testbench-core: ^1.1.0
- uams-web/patches-pest-plugin-mutate: ^1.4.0
- uams-web/patches-statamic-cms: ^1.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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 theaether_page_builderandaether_article_with_setsfieldtypes 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-onlyin_useandused_byfields. It is shared with thetablesandcalculatorscollections and stays in the host. The add-on's tests use a stub copy undertests/fixtures/host-fieldsets. - The
statamic/cmspatchstatamic-blueprint-namespace-slash.patchfromuams-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
docs/DEVELOPMENT.md: the loop for exercising the add-on in a Statamic host, and the commands for the host-bound tests.docs/SUBMISSION.md: the Packagist and Statamic Marketplace checklist.CONTRIBUTING.md: the path from an issue to a merged pull request.
composer ci runs the gate: the repository guards, Pint, Rector, Larastan and the Pest Unit and Integration suites.
License
MIT. See LICENSE.