uams-web / aether-page-builder
The page builder shared by the UAMS Aether Statamic add-ons.
Package info
github.com/UAMS-Web/aether-page-builder
Language:JavaScript
Type:statamic-addon
pkg:composer/uams-web/aether-page-builder
Requires
- php: ^8.4
- statamic/cms: ^6.35
- uams-web/aether-fieldtypes: >=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
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-01 16:48:14 UTC
README
The page builder shared by the UAMS Aether Statamic add-ons. It lives in its own add-on so that each Aether add-on that offers pages builds them from one set of blocks instead of carrying a copy. The decision is recorded in the decision log.
The add-on ships the page_builder replicator and article_with_sets Bard fieldsets, the common block fieldset and the generic block and set fieldsets, all served as aether-page-builder::<handle>. Blocks and sets come from a registry: this add-on registers its own at boot, and any other add-on registers its blocks from its provider with BlockRegistry::registerBlock() and registerSet(). The page builder requires none of the add-ons that register blocks. Blueprints use the fieldtype handles aether_page_builder and aether_article_with_sets, never the stock replicator or bard, because the stock fieldtypes read only the sets stored in the blueprint file. Turn a block or set off by handle in the blocks.disabled and sets.disabled config lists; the config wins over registration. The Sets panel of the blueprint builder is empty for these fields, because the sets are owned by the code that registers them.
The add-on also ships the views that render them: 41 under page_builder (24 blocks, the common block and 18 shared components) and 18 under sets, named as templates already call them (partial:page_builder/uamsweb_block_cta, partial:sets/image). The add-on's view folder is the last place a view is looked for, so a view of the same name in the host's resources/views wins. The three Find-a-Doc blocks (uamsweb_block_fad_expertise, uamsweb_block_fad_clinical_resources and uamsweb_block_fad_locations) are registered here but their views stay with the clinical templates. The shipped views call partials the host owns: typography/media_credit, typography/caption, layout/page-header/entry-meta/creator_roles, map, components/new_window_indicator, components/form and partials/calculator.
The Side-by-Side Image & Text block's auto-alternating alignment options read a side_by_side_alignments computed value, which the add-on registers on each collection listed in side_by_side.collections of the config (pages, reusable_content, clinical_locations and clinical_expertise by default). List only collections whose page_builder field is the replicator, because a Bard page_builder cannot hold the block.
Requirements
- PHP 8.4 or later
- Statamic 6.35 or later
uams-web/aether-fieldtypes, which provides fieldtypes the shipped fieldsets use, such assubsection- A host application that supplies the 22 shared fieldsets the blocks import by their unprefixed handles:
uamsweb_common,uamsweb_common_address,uamsweb_common_block_footer_link,uamsweb_common_contact,uamsweb_common_fad,uamsweb_common_fad_hours,uamsweb_common_images,uamsweb_common_link,uamsweb_common_map,uamsweb_common_table,uamsweb_common_table_features,uamsweb_common_table_style,uamsweb_common_video,uamsweb_creativework_location,uamsweb_post_creator,uamsweb_post_creator_roles_all,uamsweb_post_creator_roles_video,uamsweb_post_creator_video,uamsweb_post_settings,uamsweb_post_video_segment,uamsweb_video_captionanduamsweb_audio_segment_local_file. The add-on's tests use stub copies of them undertests/fixtures/host-fieldsets. These are expected to move out of the host to the add-ons that use them, tracked in UAMS-Web/uams-statamic#1646.
Installation
composer require uams-web/aether-page-builder
The add-on registers itself through Statamic's add-on discovery. To change its settings, publish the configuration file:
php artisan vendor:publish --tag=aether-page-builder-config
Development
The development guide covers developing against a host application and the commands to run. The submission checklist covers the Packagist and Marketplace steps.
The add-on's gate is composer ci.
License
MIT. See LICENSE.