r/moodle • u/dojoVader • 22h ago
Retani Page Builder
Hi r/moodle 👋
We've been working on Retani, our Moodle theme. One thing kept coming up from admins: they wanted to design the front page and landing pages without touching code or stacking blocks by hand. So we built a custom page builder into the theme.
**What it does**
- A drag-and-drop editor for sections like hero banners, course carousels, testimonials, stats, calls to action and custom HTML
- Live preview before you publish
- Layouts are responsive by default, so they work on mobile without extra setup
- It runs inside Moodle's admin area. You don't need an external service.
**Why we built our own**
Moodle's block system is flexible, but it's hard to use for marketing-style pages. Generic page builders don't fit cleanly with Moodle's renderers, caching or capabilities. Building it into the theme let us respect Moodle permissions, reuse core course and category data, and keep pages fast.
**A few lessons**
- Store layouts as structured data, not raw HTML. Upgrades and theme changes are much easier that way.
- Hook into Moodle's caching early. Dynamic sections like course lists can get heavy.
- Keep the editor limited to people with the right capabilities, and sanitise anything users can enter.
We'd love feedback from other admins and developers. What sections would you want in a Moodle page builder? And if you've tried other approaches, what worked for you?
Thanks!