Skip to main content
  • Guides & Documentation

Knowledgebase

Featured articles, how-to guides and quick tips.

Print Moodle Logo in Header Mustache Template

To print the image URL for your site's logo, uploaded via the Moodle administration panel, use the following syntaxes directly in your header mustache template:

To get the image URL for the compact logo, it's:

{{output.get_compact_logo_url}}

And for the full logo URL (i.e. not the compact one), use the following syntax:

{{output.get_logo_url}}