Repository navigation
Conversation
Align the endpoint with plone/volto#8503: element docs name their document_model, the page document docs are the docs of plone.plate, the list returns document_model, and a type query parameter sets the content type that restricted receives.
This was referenced Nov 1, 2026
This branch has not been deployed
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.
Aligns the
@blocks-schemaendpoint (#299) with the document model changes in Volto, plone/volto#8503.Aurora stores a page as one Plate document in
blocks.__somersault__, which is theplone.platedocument model.Changes
@plone/platedocs: every element docs file hasdocument_model: plone.plate.document.block.mdhas onlydocument_model: plone.plate, noblock: __somersault__. Block docs are unchanged: a block's data is the same in every model.@plone/registryloader (ported from Announce the document model in the @blocks-schema endpoint volto#8503):document_model, keyedelement:${document_model}:${name}, so two models can each have an element with the same name.document_modelis the docs of that model:{ document_model, path }.block,elementanddocument_model.virtual/blocks-docs.d.tslistsdocument_model.@plone/cmsuiendpoint:document_model: { id: 'plone.plate', version: 1 }beforedocument.documentcomes from theplone.platemodel docs, not from the__somersault__block lookup.plone.plateare listed. TheplateBlocksConfigfilter is unchanged._Document model \plone.plate`, version 1._under## Document format`, as in Volto.?type=<type>: with a content path, it replaces thecontentTypethatrestrictedreceives. The list@idand the item links keep?type=. Aurora has one model, sotypedoesn't change it, anddocument_modelsis never returned.document_model, the frontmatter, and?type=.Announcing the model from the backend, through an FTI setting in
@content-types(plone/plone.restapi#2070), is a later step tracked in plone/volto#8502. This PR makes no backend calls.Testing
pnpm --filter @plone/registry test,pnpm --filter @plone/plate test,pnpm --filter @plone/cmsui test: all pass.check:tspasses for registry, plate and cmsui. ESLint passes on the changed files.packages/cmsui/acceptance/tests/blocks-schema.test.tsis updated, with a new test for?type=. I didn't run it locally; CI runs it.