Skip to content
Kamoorjdocs
Documentation

Graduation document template editor

Layout, student and PEP variables, manual fields, preview and saving.

On this page

Editor

Open a graduation document template: /graduation/document-templates/:id, using new for creation. The body is edited in the shared document builder. It produces one document, not a multi-sheet export workbook. Select header and footer from the partial library.

Workspace

  • Toolbar: multilingual name, navigation, save and undo/redo.
  • Insertion area: sections, rows and cells for layout; text, table, image, date, signature, divider/spacer, group and dynamic field blocks.
  • Canvas: insert/select blocks, inspect alignment and the schematic document.
  • Inspector: selected element properties, formatting, dimensions, spacing, background, borders and page settings.

Paper formats are A3/A4/A5/Letter, portrait or landscape, with color/image background and page margins. Background and page settings affect layout, not personal data. This adapter hides content_table, performance_summary and photo blocks available in other builders; an ordinary authored table differs from a dynamic export table. A signature area is not an electronic signature.

Template properties

Property Value
Enabled Enabled by default; available for issuance
Header/footer Optional existing partial of the appropriate type
Manual fields Additional operator-entered issuance values
Name At least one nonempty translation, up to 255 characters
Body Required document sections and blocks

The screen uses an internal editor draft, but saves one body layout and is_enabled. There is no separate published template version.

Data variables

Select variables from the catalog rather than typing keys as plain text. Examples:

Key Source or value
student.full_name, student.first_name, student.last_name Student record
enrollment.faculty, enrollment.profession, enrollment.degree Effective academic course
computed.cumulative_gpa, computed.total_credits, loop.result.performance_level Study results; loop requires compatible source
university.name, employee.by_role_scope Institution and signatory by role
mkc.name Enrollment profession name
mkc.code Profession classifier
mkc.description Currently null; define a manual field if needed
manual.defense_result Value of the corresponding manual field at issuance

The catalog also has Diploma Core (diploma_paragraphs): paragraph rows of the student's professional education program. A row has section_key, displayed section number, multilingual body and order. The variables loop.diploma.section, loop.diploma.body, loop.diploma.order require that source. The server supports sorting by order/section_key, grouping by section_key and filtering a specific section. It matches PEP by the effective course's profession, degree and learning format, prioritizing published and then newest records. Without a matching programme or paragraphs the collection is empty. This is server support: the current adapter does not connect the general row-source/sorting catalog for all these modes, so it does not guarantee that every source can be selected in a new UI layout. Verify available binding controls.

Add a manual field

  1. Add a field in template settings.
  2. Enter a stable key, such as defense_result (up to 64 characters), localized labels and text, date or textarea type.
  3. Set required according to institutional rules. The flag is saved, but the issuance request does not guarantee enforcement.
  4. Insert manual.defense_result into the appropriate body location. Declaring the field alone does not print it.

The key must not be blank; use unique Latin-letter/underscore keys to avoid colliding values. Rename all placements if you change a key. Series, number and date in the issue dialog are stored separately from these variables. Dynamic input/select blocks provide a separate way of entering data directly in the layout.

Example: diploma supplement

  1. Name it Diploma supplement, choose A4 portrait and disable it while authoring.
  2. Attach a university-name header; add the title, student name and profession variables in the body.
  3. Insert mkc.code, credits/GPA and available results bindings. Add the defense_result manual field and, if needed, a separate programme-description field.
  4. Add the footer with signature area. Translate labels and inspect margins and wrapping.
  5. Save and inspect the schematic preview. Enable the template for a controlled check and open the issuance dialog for a test student to inspect the actual saved template output. Close without confirming to avoid issuing a document. Keep enabled afterwards only if ready for use.

Save, permissions and limitations

The server validates the body and variable/source/dynamic-field compatibility. Saving neither issues a document nor updates existing snapshots. The shared graduation template editor provides schematic preview. This adapter does not connect its own real-student selector, so check actual rendered student data in the issue dialog of an enabled saved template.

Reading requires GraduationDocumentTemplatesTablePull; saving new and existing templates requires GraduationDocumentTemplatesCreateAction and GraduationDocumentTemplatesEditAction respectively. Server reading and catalog retrieval bind to graduation-document-templates.index, saving to graduation-document-templates.store. Header/footer retrieval needs the relevant permissions. Educational scopes do not apply to editing templates; student scope is checked separately at issuance.

If data is missing, check the variable key, source, locale, source data, and matching PEP. If a section does not repeat, check the section binding rather than duplicating blocks for every student. For shared builder principles see the reference editor; its certificate-specific settings and employee variables do not apply here.

Implementation references

Updated Nov 27, 2026