WP Manifestindependent plugin directory
manifest / themes / prc-block-area-modules

PRC Block Area Modules

Block Area Modules provides an editorially curated method for adding content to areas of a block theme.

by Seth Rubenstein · github.com/pewresearch/prc-block-area-modules · website

1stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/pewresearch/prc-block-area-modules/archive/refs/heads/trunk.zip

From the readme

PRC Block Area Modules Canonical docs: docs/plugins/prc-block-area-modules/ Provides an editorially curated system for populating named zones in a block theme with reusable block content. Rather than using static template parts, editors assign a blockmodule post (a freeform block-editor document) to a named blockarea taxonomy term, optionally scoped by taxonomy (e.g., topic category or region). The correct module is resolved server-side at render time. What it does - Registers the blockmodule custom post type — full block-editor documents that serve as slot content. - Registers the blockarea hierarchical taxonomy, used to tag modules to named zones (e.g., topic-lede, featured-banner). - Provides the prc-platform/block-area block, which resolves and renders the matching blockmodule at request time based on blockAreaSlug + optional taxonomy term. Supports direct ref override to pin a specific module. - Supports inheritTermFromTemplate so a single block area placed in a taxonomy archive template automatically scopes to the current term. - Provides the prc-platform/block-area-context-provider block (dev/layout use), which wraps block areas and query blocks. It pre-fetches the stor

Read the full README on GitHub →