Skip to content
DocsReference
DocsReferenceGitHub

Search Ridu documentation

tab controls

Loading search…

Search will be ready in a moment.

No matching results

Try a different term or search every section.

Loading search.

Preparing index…View all results →↑↓ move↵ openesc close
Get started
Modules/schema
FBlockTemplate

Go packages

riducorefieldoperationqueryschemastorestoragemigrationmigration/payloadprotocol (Go)plugintestconformance

Official adapters

postgressqlitemongodbstorage/localstorage/s3

Official plugins

graphqlmcprichtextseoformbuilder@riducms/plugin-richtext@riducms/plugin-seo@riducms/plugin-form-builder@riducms/plugin-graphql

TypeScript packages

@riducms/sdk@riducms/sveltekit@riducms/protocol@riducms/plugin@riducms/build@riducms/ui@riducms/admin@riducms/translations@riducms/cli/run

Tooling

ridu CLI
Allschemariducorefieldoperationquerystorestoragemigrationmigration/payloadprotocol (Go)plugintestpostgressqlitemongodbgraphqlmcprichtextseoformbuilderstorage/localstorage/s3conformance@riducms/sdk@riducms/sveltekit@riducms/protocol@riducms/plugin@riducms/build@riducms/ui@riducms/plugin-richtext@riducms/plugin-seo@riducms/plugin-form-builder@riducms/plugin-graphql@riducms/admin@riducms/translations@riducms/cli/runridu CLI
All 202SnapshotIsSupportedEndpointMethodIsValidEndpointPathBindBlockReferencesBlockTemplateCascadeReferenceIssuesChildFieldsClearDescendantLocalization

function

BlockTemplate

BlockTemplate detaches one resolved definition and makes field paths relative to its root. Nested containers stay compact selections of other definitions.

ArgumentsReturnsFull signature

Arguments

ArgumentTypeDescription
blockBlockTypeThe block value.
resourceStableIDThe resource value.
prefix[]stringThe prefix value.

Returns

The declared result.

BlockType

Full signature

func BlockTemplate( block BlockType, resource StableID, prefix []string, ) BlockType

Source schema/block_registry.go:578

Related types

  • BlockType

    One normalized discriminated block layout.

  • StableID

    A deterministic identifier for schema evolution.