Blocks and template

Governance documents index

Block lh-governance-documents/index. Lists the site’s governance documents under a heading for each type (constitution, policies, procedures, codes of conduct, terms of reference, then any others), ordered by page order and then title. Each document only appears to visitors who can read it, so restricted, confidential and private documents stay hidden from those without access. Add it to whatever page the organisation uses for its governance listing.

Governance document details

Block lh-governance-documents/document-meta. Shows the document’s type, who approves it, when it was adopted and amended, its registration date, how often it is reviewed and when its next review is due, leaving out anything not set. It reads the document from block context, so a theme can place it in any template for this post type.

Single document template

The plugin registers a block template for single governance documents: the theme’s header, then the title, the details block and the document content, then the footer. The dates therefore never need writing into the document text, and every document shows them however it was created. A theme can replace it with its own single-lh_governance_doc template, or it can be edited in the Site Editor.

The template needs a block theme or a hybrid theme with block template support, since classic themes never load plugin block templates. It uses the theme’s header and footer template parts. On a classic theme documents display as before, without the details, unless the theme adds the details block itself. Requires WordPress 6.7.