[6.x] Sidecar - #15099
Open
jackmcdade wants to merge 7 commits into
Open
Conversation
Driver packages now register SSG compatibility via Sidecar::pair(), so install discovery no longer depends on a published config key. Co-authored-by: Cursor <cursoragent@cursor.com>
Nested Sidecar content will use real folders instead of slash-containing slugs, so PathSlug and preserve_paths are no longer needed. Co-authored-by: Cursor <cursoragent@cursor.com>
Drivers can opt into folder-based nesting so structure changes rewrite entry paths and sibling order instead of encoding hierarchy in slugs. Co-authored-by: Cursor <cursoragent@cursor.com>
jackmcdade
marked this pull request as draft
August 1, 2026 23:07
Custom Closure/Blueprint fallbacks skipped the title contents update that the default path applied, so Sidecar and other custom fallbacks got inconsistent blueprint titles. Co-authored-by: Cursor <cursoragent@cursor.com>
jackmcdade
marked this pull request as ready for review
August 2, 2026 17:20
Guard registerCustomDirectory when the entries store is missing, and update publish-array expectations for the textarea rows default. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sidecar: Edit external Markdown content with Statamic
Summary
Welcome to Sidecar: a new way to edit external Markdown content with Statamic.
Sidecar connects Statamic to an existing documentation site (like LaraDocs) or static site generator (like Jigsaw), turning its Markdown files into a native collection inside the Control Panel.
Content stays exactly where it is without any need to import, duplicate, or sync anything. No need to change how the original site is built. You just layer Statamic’s editing experience on top of it. It includes support for:
Why
Many teams already have documentation or content living in systems like LaraDocs or Jigsaw.
Those systems work well for developers, but editing raw Markdown, front matter, navigation files, and folder structures isn’t always a great experience for the rest of the team. And migrating to a whole new platform and learning a new front-end structure can be a barrier to entry that otherwise would be a happy integration.
Well, Sidecar bridges that gap.
Developers can keep the filesystem structure, tooling, and deployment workflow they already use. Editors get a polished, intuitive Control Panel for managing the same files.
That's a win/win/win. The legendary Triple Win.
How it works
Sidecar provides a common foundation for connecting Statamic collections to external content systems.
Each supported system has a small driver package that understands its particular conventions: where its content lives, how navigation works, how folders are structured, and how preview URLs should be generated.
This PR adds the core Sidecar framework. Individual integrations live in separate packages, including:
statamic/sidecar-laradocs_index.mdfiles, and ordering via front-matter, manageable by the entries tree componentstatamic/sidecar-jigsawnavigation.php, manageable by the entries listing componentWhat this PR adds
External collections
A Sidecar driver can expose content from anywhere in the project as a Statamic collection.
The collection is registered dynamically, so it doesn’t require a corresponding YAML file inside
content/collections.Native content editing
Entries are read from and saved directly to their original files.
Existing front matter is preserved, including values Statamic doesn’t explicitly manage.
Note: Statamic may inject its own data into the front-matter (e.g.
idto manage indexes).Structure synchronization
For systems that use nested folders, reorganizing entries in Statamic’s structure tree updates the real filesystem structure.
Sidecar can:
page.mdandpage/_index.mdas convention dictatesOther drivers can manage hierarchy through their own navigation system instead.
Live Preview
Sidecar collections can provide Preview and Visit URLs even when the collection doesn’t have a traditional Statamic route.
This makes Live Preview available for documentation sites, static site generators, and other externally rendered content.
Blueprint fallbacks
Drivers can provide a default blueprint when the project doesn’t already contain one.
This allows a connected collection to work immediately while remaining fully customizable.
Guided installation
Sidecar can detect installed, compatible packages and configure the appropriate driver:
You can also select one explicitly:
Example
Install LaraDocs and its Sidecar driver:
This produces a Sidecar collection configuration similar to:
The documentation files will then appear as a collection inside the Statamic Control Panel, ready to edit, organize, preview, and manage.
The original LaraDocs site continues to read and build those same files exactly as it did before.
Scope
This PR contains the core Sidecar framework and the underlying collection improvements it requires.
Concrete integrations, such as LaraDocs and Jigsaw support, are maintained as separate driver packages.
Sidecar is currently experimental while we validate the API and explore additional integrations.
Docs
Documentation is available here: statamic/docs#1958
Testing
sidecar:installwith no compatible packages installedsidecar:installwith one compatible package installedsidecar:installwith multiple compatible packages installed