DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:sitemap_generate

SITEMAP_GENERATE

Description:
Generate a sitemap XML file from sitemap items
DefaultAction:
Writes the XML file using Sitemapper::getXML()
Preventable:
yes
Added:
2010-11-12

This event is signaled by generate() in inc/Sitemapper.php when a new sitemap is generated, handlers can use it to change the generated XML, prevent saving the sitemap and provide their own routine for saving the file and add or remove items to/from the sitemap. The path the sitemap will be saved to can be changed, but shouldn't be changed as the path getFilePath() returns is used to deliver the sitemap.

Passed Data

  • $data['items']: Array of SitemapItem instances, the array of sitemap items that already contains all public pages of the wiki
  • $data['sitemap']: The path of the file the sitemap will be saved to.

See also

devel/event/sitemap_generate.txt · Last modified: 2018-12-08 16:05 by torpedo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki