Structured Content Library
Package docs status
Section titled “Package docs status”This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.
| Field | Value |
|---|---|
| Composer package | capell-app/structured-content-library |
| Package slug | structured-content-library |
| Product group | Capell Foundation |
| Tier | free |
| Bundle | foundation |
| Runtime contexts | admin, shared |
| Capell version | ^1.0 |
| Source repository | capell-app/packages |
| Source path | packages/structured-content-library |
| Docs source | packages/structured-content-library/docs |
| Manifest | capell.json |
What This Plugin Adds
Section titled “What This Plugin Adds”Structured Content Library is an Available, Schema-owning Capell package in the Capell Foundation product group. It ships as capell-app/structured-content-library and extends these surfaces: admin, shared.
Structured Content Library stores reusable case studies, testimonials, team members, services, FAQs, resources, partners, locations, and logos as portable records.
Editors maintain structured items in one admin resource. Content Sections and themes receive hydrated public data without querying models from public views.
Evidence: src/Enums/StructuredContentType.php, src/Models/StructuredContentItem.php, src/Actions/CreateStructuredContentItemAction.php, capell.json, src/Manifest/StructuredContentItemResourceContribution.php, src/Actions/BuildStructuredContentSectionsAction.php, src/Actions/BuildPublicStructuredContentItemsAction.php, tests/Integration/Actions/BuildPublicStructuredContentItemsActionTest.php.
Status details:
- Status: Available
- Tier: free
- Bundle: foundation
- Composer package:
capell-app/structured-content-library - Namespace:
Capell\StructuredContentLibrary - Theme key: not applicable
Why It Matters
Section titled “Why It Matters”For developers: Typed data and adapter contributions provide a package boundary for public records, with portable HTML checks and caching handled before rendering.
For teams: Teams can maintain one approved record for repeated people, services, proof, or reference content and reuse it across supported packages.
Evidence: src/Data/PublicStructuredContentItemData.php, src/Manifest/StructuredContentSectionAdapterContribution.php, src/Actions/EnsurePortableContentHtmlAction.php, src/Support/StructuredContentCache.php, src/Actions/UpdateStructuredContentItemAction.php, src/Actions/BuildPublicStructuredContentPayloadAction.php, tests/Integration/Actions/BuildStructuredContentSectionsActionTest.php.
Screens And Workflow
Section titled “Screens And Workflow”Screenshot contract: docs/screenshots.json.


- Structured content item list (admin, required).
- Structured content create form (admin, required).
- Structured content reusable item edit form (admin, required).
- Structured content testimonial public render (frontend, optional).
- Structured content type variation (admin, optional).
- Structured content empty state (admin, optional).
Technical Shape
Section titled “Technical Shape”- Service providers:
Capell\StructuredContentLibrary\Providers\StructuredContentLibraryServiceProvider. - Migrations:
packages/structured-content-library/database/migrations/2026_05_31_000001_create_structured_content_items_table.php,packages/structured-content-library/database/migrations/2026_06_04_000001_add_unique_scope_slug_index_to_structured_content_items_table.php,packages/structured-content-library/database/migrations/2026_07_10_000001_add_normalized_scope_key_to_structured_content_items.php. - Models:
StructuredContentItem. - Filament classes:
CreateStructuredContentItem,EditStructuredContentItem,ListStructuredContentItems,StructuredContentItemResource. - Policies:
StructuredContentItemPolicy. - Actions:
AuthorizeStructuredContentMutationAction,BuildPublicStructuredContentItemsAction,BuildPublicStructuredContentItemsForTypesAction,BuildPublicStructuredContentPayloadAction,BuildStructuredContentSectionsAction,CreateStructuredContentItemAction,EnsurePortableContentHtmlAction,ImportStructuredContentItemsAction,ListStructuredContentItemsAction,ResolveUniqueStructuredContentSlugAction,UpdateStructuredContentItemAction. - Data objects:
PublicStructuredContentItemData,StructuredContentImportResultData,StructuredContentItemData,StructuredContentPayloadData,StructuredContentSectionData. - Manifest action API:
buildPublicStructuredContentItems: Capell\StructuredContentLibrary\Actions\BuildPublicStructuredContentItemsAction,buildStructuredContentSections: Capell\StructuredContentLibrary\Actions\BuildStructuredContentSectionsAction,importStructuredContentItems: Capell\StructuredContentLibrary\Actions\ImportStructuredContentItemsAction,listStructuredContentItems: Capell\StructuredContentLibrary\Actions\ListStructuredContentItemsAction. - Manifest contributions:
admin-resource: Capell\StructuredContentLibrary\Manifest\StructuredContentItemResourceContribution,agent-capability: Capell\StructuredContentLibrary\Manifest\StructuredContentSectionAdapterContribution,agent-capability: Capell\StructuredContentLibrary\Manifest\StructuredContentThemeAdapterContribution,model: Capell\StructuredContentLibrary\Manifest\StructuredContentModelsContribution. - Health checks:
Capell\StructuredContentLibrary\Health\StructuredContentLibraryHealthCheck. - Cache tags:
structured-content-library.
Data Model
Section titled “Data Model”- Required tables:
structured_content_items. - Models:
StructuredContentItem. - Core record references in migrations:
sites via site_id. - Migration files:
2026_05_31_000001_create_structured_content_items_table.php,2026_06_04_000001_add_unique_scope_slug_index_to_structured_content_items_table.php,2026_07_10_000001_add_normalized_scope_key_to_structured_content_items.php. - Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: migrations declare null-on-delete relationships; no timed pruning or retention schedule is declared in
capell.json.
Install Impact
Section titled “Install Impact”- Required packages:
capell-app/admin,capell-app/core. - Admin navigation: declares
admin-resource: StructuredContentItemResourceContribution; each Filament page or resource controls its own navigation visibility. - Admin/editor extensions: none declared.
- Permissions:
ViewAny:StructuredContentItem,View:StructuredContentItem,Create:StructuredContentItem,Update:StructuredContentItem,Delete:StructuredContentItem. - Public routes: none declared.
- Database changes: package migrations are declared.
- Config: no package config files.
- Settings: no package settings declared.
- Queues or schedules: none declared.
- Cache tags:
structured-content-library. - Commands: none declared.
Common Pitfalls
Section titled “Common Pitfalls”- Keep required Capell packages on compatible v4 releases:
capell-app/admin,capell-app/core. - Run migrations before opening package resources or public routes.
- Custom write integrations must preserve invalidation for
structured-content-librarycache tags.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration | Reinstall the package, refresh Composer autoload, and clear host caches |
| Admin screen or command fails on missing table | Package migrations have not run | Check the tables listed in Data Model | Run host migrations and rerun the focused package test |
Quick Start
Section titled “Quick Start”- Install the package:
composer require capell-app/structured-content-library. - Run the required setup:
php artisan migrate. - Open the Structured content item list and confirm the admin workflow loads.
Next Steps
Section titled “Next Steps”- Package docs
- Overview
- Troubleshooting
- Screenshot contract
- Marketplace assets
- Capell content language plan
- Capell documentation design system
- Capell and package ERD notes
- Related packages: Content Sections, Theme Foundation.
- Focused tests:
vendor/bin/pest packages/structured-content-library/tests --configuration=phpunit.xml.