# Document headers and footers ## Open a header or footer In **Administration → Module Export Builder**, open the relevant module and its header and footer settings. The list is specific to the selected module and band type. Choose headers or footers, then add a band or edit an existing one. The editor route is `/content-export-templates/:moduleKey/partials/:id`. New bands use `new` for the ID. A footer uses `?kind=footer`. The default is a header. [Export template catalogue](/en/docs/content-export-templates) ## Build the band 1. Enter a descriptive name in at least one language, up to 255 characters per translation. For example, use “Learning plan header”. This name identifies the band when attaching it to a sheet. Add any text that should print to the layout itself. 2. Select a section, row and cell on the canvas. Use the add panel to insert text, an image, date, signature, regular table, divider, spacer or group. Input and selection fields are also available. Use the block's properties and the current module's variable catalogue to configure translated content and values. Select an element in the preview or structure tree to inspect its properties. 3. For recurring details, insert an available shared block. Adjust rows, cell widths and appearance. The saved background can include a colour and an image from the managed template media library. An arbitrary external background URL fails validation. [Shared blocks](/en/docs/content-export-snippets) 4. Save. The editor sends the band's sections, dynamic field definitions, background and name translations. Its single workspace uses a synthetic A4 landscape sheet. Set the final page format and orientation in the template that uses the band. ## Check the layout in context Header and footer sections are static, with binding source `none` and mode `single`. Put dataset rows and module data tables in the body of the template. A regular table can arrange fixed labels and values in the band. The band editor shows a schematic preview. To check real data, open a template, assign the header or footer to the intended sheet and preview an accessible record. [Template editor](/en/docs/content-export-template-editor) ## Understand changes to linked templates A sheet stores a reference to the band. After you edit it, subsequent exports of linked templates use the updated design. Expand the usage count in settings to see links to the templates, their statuses and the default marker. A template counts once even when more than one of its sheets uses the band. A referenced band cannot be deleted. First replace or remove it on every relevant sheet in the listed templates and save. For a variant intended for just one template, create a separate band. ## Permissions and example The list, band detail, variables and usage list use `content-export-template-settings.index`. Creation, editing and deletion use `.store`, `.update` and `.destroy` under the same prefix. Selecting an existing band in the builder is tied to `content-export-templates.index`. Band library operations declare no organisational scope. The parent template's data preview respects the selected module's faculty, profession or department scopes. For example, create a two-cell header for `learning-plan`. Put the institution's logo from the media library on the left and its name and the words “Learning Plan” on the right. Save, attach this header to two sheets of the template and check the result in PDF. Before replacing the logo, check the usage list for other learning plan templates that share this header. ## Implementation references - [frontend-edusystems · Settings/index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/ContentExportTemplates/Settings/index.tsx) - [frontend-edusystems · PartialEditor/index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/ContentExportTemplates/PartialEditor/index.tsx) - [frontend-edusystems · ContentExportTemplates/partialTemplateAdapter.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/ContentExportTemplates/partialTemplateAdapter.ts) - [frontend-edusystems · editor/index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/features/documentBuilder/editor/index.tsx) - [backend-edusystems · routes/api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ContentExportTemplates/routes/api.php) - [backend-edusystems · Services/ContentExportPartialService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ContentExportTemplates/Services/ContentExportPartialService.php) - [backend-edusystems · Requests/StoreContentExportPartialRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ContentExportTemplates/Http/Requests/StoreContentExportPartialRequest.php) - [backend-edusystems · Enums/ContentExportModule.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ContentExportTemplates/Enums/ContentExportModule.php)