Skip to content

The Sitemap plugin makes it easier for you to create a sitemap for your website.

License

Notifications You must be signed in to change notification settings

friends-of-sunlight-cms/sitemap-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Sitemap plugin

The Sitemap plugin makes it easier for you to create a sitemap for your website.

  • SunLight CMS 8
Copy the folder 'plugins' and its contents to the root directory

or

Installation via administration: 'Administration > Plugins > Upload new plugins'

Don't forget to add the path to the file at the end of the robots.txt file (in the site root), which must be in absolute form.

Sitemap: https://mydomain.tld/sitemap.xml

Files can be generated manually in the content management, but by default sitemap files are generated automatically.

The following actions trigger the regeneration:
  • creating an article
  • edit article settings (slug, public, visible, confirm, home category)
  • deleting an article
  • creating a page
  • editing page settings (slug, public, visible, level, parent page)
  • deleting a page

sitemap.items - event allows to modify page data before generating files and also to add custom addresses (ex: for API)

sitemap.defaults - event allows to modify values for individual page types (changeFreq and priority)