Find a shared block
Open Administration → Shared Blocks (/content-export-snippets). The library contains layout fragments that can be linked to multiple templates and bands. Search by translated name or machine key. Switch between the card grid and list. Each item shows the name, a system badge where applicable and the number of templates using the block. Module Export Builder
Create a block and choose modules
- Choose Add. The editor opens at
/content-export-snippets/editor/new. Saved blocks use their ID in place ofnew. In block settings, enter a translated name in at least one language, up to 255 characters per translation. The internal key is generated at creation and remains fixed. - Leave the module restriction empty for a universal block or select specific modules. For example, choose
learning-planfor a block that uses learning plan data. The editor loads the first selected module's catalogue, falling back to the learning plan catalogue if none is selected. The server validates the layout for every permitted module, including all modules for a universal block. Seeing a variable in the palette alone does not establish compatibility with all modules. - Select a cell in the preview. The add panel offers text, variables, input and selection fields, regular tables, module data tables, images, dates, signatures, groups, dividers and spacers. Insert a row of one, two or three columns, place elements in cells and use the inspector to configure content and appearance. Where signatory variables share a role, the editor provides a common role selector.
- Save the fragment. The library stores a single root block. A composition containing multiple elements or cells is stored as a group. Page size, sheets, headers and footers belong to the parent template. A library block cannot contain a link to another shared block. Template editor
Insert a block in a template or band
In the target module's editor, use the add panel to insert a compatible shared block in a cell. During export the reference resolves to the current library layout. Local overrides available in the inspector replace individual properties while the instance inherits the rest. An override can be reset. To make an independent version, detach the instance and save the template. Future changes to the source then leave the detached layout intact. Headers and footers
Review the impact of changes
When saving an existing block, the editor fetches its current usages. Review the modules, templates, sheets and insertion counts before confirming. If loading fails, use Retry in the dialog. You cannot exclude a module where a template or band still uses the block, or alter the source in a way that invalidates saved property overrides.
Copy creates an independent user block with the same layout and module restrictions, and appends a copy suffix to each translated name. Existing references still point to the original. System blocks are protected from deletion. To delete a user block, remove references from templates and from headers and footers. A band can keep a reference even when no template uses that band. Save the affected layouts, then retry deletion.
Permissions and example
The library has its own content-export-snippets module. Its .index action covers listing, reading a block, resolving its layout and viewing usage. Adding and copying require .store, editing requires .update and deletion requires .destroy. The API action to reset a system layout is tied to .update. These actions declare no organisational scopes. The module restriction controls export compatibility. A template and its shared block have separate editing permissions.
For example, create a universal “Approved by” block with two cells containing a signatory label and a signature line. Insert it in two templates. To correct the shared label, change the source and check both templates. If one document needs a different signature, use an available local override or detach the instance in that document.
Implementation references
- frontend-edusystems · container/index.tsx
- frontend-edusystems · Editor/index.tsx
- frontend-edusystems · Editor/SnippetWorkspace.tsx
- frontend-edusystems · Editor/snippetDraft.ts
- frontend-edusystems · ContentExportSnippets/ContentExportSnippetsService.ts
- frontend-edusystems · inspector/SnippetInspector.tsx
- backend-edusystems · routes/api.php
- backend-edusystems · Services/ContentExportSnippetService.php
- backend-edusystems · Services/SnippetExpander.php
- backend-edusystems · Requests/StoreContentExportSnippetRequest.php
- backend-edusystems · Controllers/ContentExportSnippetController.php