Public Sitemap
插件本地插件稳定版

Public Sitemap

local_kopere_sitemapEduardo Kraus

  • Moodle 1.9–5.1
  • 更新 2026-10-16

This a Moodle plugin that automatically generates a public XML sitemap for the site and adds a reference to the sitemap in the of all Moodle pages.
local_kopere_sitemap   is a Moodle plugin that automatically generates a   public XML sitemap   for the site and adds a reference to the sitemap in the   <head>   of all Moodle pages.
The plugin’s purpose is to make it easier for   search engines to index your Moodle site   (Google, Yahoo, DuckDuckGo, etc.), allowing crawlers to find relevant public pages on the platform, such as open courses, categories, forums, and homepage content.
The sitemap is generated dynamically from the existing data in the Moodle database and respects content visibility settings.
How the plugin works
The plugin has two main components:
XML Sitemap Generator
Automatic injection of the sitemap link into the site’s   <head>
These two mechanisms work together to allow search engines to discover and index the platform’s public content.
Public XML sitemap
The sitemap is available at the following URL:
https://yourmoodle.com/local/kopere_sitemap/sitemap.php
This page generates a   valid XML file following the Sitemap protocol standard :
https://www.sitemaps.org/protocol.html
Simplified example of the generated XML:
< urlset xmlns = ” http://www.sitemaps.org/schemas/sitemap/0.9 ” >
< url >
< loc > https://yourmoodle.com </ loc >
< lastmod >2026-03-09T10:30:00+00:00</ lastmod >
</ url >

返回插件目录