Skip to content

Structured Content Library

This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.

FieldValue
Composer packagecapell-app/structured-content-library
Package slugstructured-content-library
Product groupCapell Foundation
Tierfree
Bundlefoundation
Runtime contextsadmin, shared
Capell version^4.0
Source repositorycapell-app/packages
Source pathpackages/structured-content-library
Docs sourcepackages/structured-content-library/docs
Manifestcapell.json

Structured Content Library owns reusable business-content records for Capell themes and packages.

The package stores portable content for:

  • case studies
  • testimonials
  • team members
  • services
  • FAQs
  • resources
  • partners
  • locations
  • logos

It intentionally does not store designed layout markup, Tailwind classes, frontend authoring markers, or theme-specific structures. Themes should render the model data through their own Blade/components.

The first slice provides:

  • StructuredContentItem, a package-owned Eloquent model backed by structured_content_items
  • StructuredContentType, a backed enum for the supported content concepts
  • StructuredContentStatus, a backed enum for draft/published/archive state
  • StructuredContentItemData and StructuredContentPayloadData DTOs for structured writes and JSON payloads
  • Actions for creating, updating, importing, listing, and building public-safe section payloads by type/site

Use ListStructuredContentItemsAction::run($type, $siteId) when a theme or package needs published reusable records. Use BuildStructuredContentSectionsAction::run($sections, $siteId) when a theme or content-section package needs grouped section-ready payloads.