Grav Open Course Hub and Moodle

Long on my to-do list was to further explore how Grav Open Course Hub content could be displayed within the popular open source Moodle LMS. Curious about the initial results? You can explore a live demo at and view some draft docs at

Grav Course Hub content within Moodle
Figure 1. Grav Course Hub content within Moodle.

To better support display of Course Hub content within Moodle, two new URL flags have also been added:

hidepagetitle:true to hide the Course Hub page entitled
summaryonly:true to only display a Unit’s (i.e. class) page summary

So, for example to embed a Course Hub Unit page summary using an iFrame in Moodle without a page title the HTML would be:

    <p><iframe scrolling="no" style="border: 0px #ffffff none; " src="" allowfullscreen="allowfullscreen" height="470px" width="100%"></iframe></p>

This results in being able to display Course Hub content almost anywhere within your Moodle site. For example, since the Grav CMS supports modular content (i.e. the same content displayed in multiple locations) you could now take advantage of that ability within Moodle:

UX Techniques Page
Figure 2. The ‘Problem Statement’ topic within the UX Techniques page.

Unnit Page
Figure 3. The same ‘Problem Statement’ topic from the UX Techniques page displayed in a Unit page.

Markdown-based content, support for open and collaborative workflows via Git (i.e. GitHub, GitLab, etc.), editing content on your desktop, it’s all now possible within Moodle!

Previous Post Next Post