The Grav Open Course Hub supports a number of optional URL flags (i.e. parameters) to better support embedding Hub content into other LMSs such as Canvas or Moodle:
chromeless
- hide all global navigation elements
summaryonly
- display the summary of a blog post
hidepagetitle
- hide the title of a page
Each URL flag can be added to a URL referencing a specific page of a Grav Open Course Hub site in the format flagname:true
, for example:
yourgravsite.com/chromeless:true
and multiple flags can be used at once, for example:
yourgravsite.com/chromeless:true/hidepagetitle:true
So, time for some live demos!
View the standard Open Course Hub homepage:
demo.hibbittsdesign.org/grav-course-hub/
Figure 1. Grav Open Course Hub Homepage.
And now let’s view the same page using the chromeless
URL flag:
demo.hibbittsdesign.org/grav-course-hub/chromeless:true
Figure 2. Chromeless Grav Open Course Hub homepage.
Getting the idea? Let’s continue!
View Week 4 for an Open Course Hub site:
demo.hibbittsdesign.org/grav-course-hub/home/unit-04/
Figure 3. Grav Open Course Hub week 4 page.
Now view the same page using the chromeless
URL flag:
demo.hibbittsdesign.org/grav-course-hub/home/unit-04/chromeless:true
Figure 4. Chromeless Grav Open Course Hub week 4 page.
You can also hide the page’s title, like this:
demo.hibbittsdesign.org/grav-course-hub/home/unit-04/chromeless:true/hidepagetitle:true
Figure 5. Chromeless Grav Open Course Hub week 4 page with title hidden.
And even just display the summary (preview) of the page:
demo.hibbittsdesign.org/grav-course-hub/home/unit-04/chromeless:true/hidepagetitle:true/summaryonly:true
Figure 6. Chromeless Grav Open Course Hub week 4 page with title hidden and summary only.
Using the above three URL flags it’s possible to embed various elements of your Grav Course Hub site into other LMSs, for example Canvas or Moodle.
For detailed instructions, these step-by-step guides might be of interest:
Want to reuse this open content? Save this Page as Markdown