Hi everyone,
we’re working with Modular Pages in Grav and have a common use case where we’d like to reuse a complete modular section (e.g. a CTA block or feature overview) across multiple pages – with the following requirements:
- The module should be maintained in one central place
- It includes its own layout, media, and custom blueprint fields
- On other pages, it should be referenced and rendered identically
- No duplication or manual updates on each page
- Ideally, editors should be able to insert such modules via the admin panel
We tried page.find() and the page-inject plugin, but these only help with content injection, not full modular rendering.
Has anyone found a clean way to do this?
Is there maybe a plugin or best practice to embed modular content (not just markdown) across pages?
Would we need a custom plugin that handles template rendering + context switching?
Thanks for any suggestions or experiences!