Mity Digital

Sitemapamic Release Notes

Mity Digital


May 26th, 2022

Just a minor update to add a ttl config option if you'd like to have your Sitemapamic cache cleared more frequently.

The default is 'forever' - meaning until an Entry, Term, Taxonomy or Collection is changed.

With this update, you can now add ttl to your config file, and have your cache live for a set period of time.

Check out the source config file for full notes.


May 25th, 2022

Welcome to a new day, and a new release.

This release adds a few new features: - support for global Taxonomy Term URLs - support for adding your own Dynamic Routes.

Check out the README for full details

This release also updates the events that trigger the sitemap cache to clear. The cache will be cleared automatically when any of the following are saved or deleted: - Entry - Term - Taxonomy (added in 2.1.0) - Collection (added in 2.1.0)

Finally, the SitemapUrl class has been renamed to SitemapamicUrl - there's a high chance you have not used this class yourself, but just in case you have, make sure you update your code too.


May 16th, 2022

Just a little housekeeping update - the config file is cleaned up and now lives in config/sitemapamic.php.

The upgrade process will try to move it for you.

Also added: when an Entry or Term is deleted, the Sitemapamic cache is cleared. Previously it was just on save.

You can also now publish the XML view template too - just in case you need to make changes - check out the readme for more details.


May 2nd, 2022

Hello Sitemapamic! You're the shiny new name for the "XML Sitemap generator for Statamic". Much nicer, hey?

This is a v2.0 update that does introduce breaking changes. Review the upgrade notes in the readme for full details of how to go from v1.x to v2.0. It's really easy, but just give it a read.


May 2nd, 2022

Just some minor code clean ups with the slight tweak to the name. Also improved the readme details.


October 27th, 2021

Just a small one: moved the XML header to the controller (rather than the blade template) as it is creating issues with some users with PHP short tags enabled.


October 8th, 2021

Tweak behaviour for terms and multi-sites


October 8th, 2021

Caching improvements for multi-site setups


October 8th, 2021

Improved handling of multi-site sitemap generation


October 4th, 2021

Adds support for including/excluding Taxonomy URLs per collection.

Adds a new config option, includeTaxonimies, such as:

'blog' => [
    'include'           => true,
    'frequency'         => 'monthly',
    'priority'          => '0.6',
    'includeTaxonomies' => false,

When enabled, Taxonomy URLs will be included in the sitemap. This is the default behaviour, even if you do not add this property (i.e. you're upgrading from an earlier version).

When disabled, Taxonomy URLs for that Collection will be disabled. If the Collection itself is disabled, the Taxonomy URLs will be disabled too.

Adding this property to your config file is recommended.

New installations also only come pre-configured with a single Pages Collection, just for easier on-boarding.


September 29th, 2021

This update provides changes to the way entries and terms are processed, and corrects a few issues.

Firstly, the Sites URL for an Entry/Term locale is used for the root - not just the app URL.

Secondly, only Collections defined in the sitemap.php config file are looked at. It makes sense to only look at Collections that you actually want to have included, right? Happy to discuss this point, but does make sense - although the config key should probably change from "defaults" to "collections" or something - but that's more breaking so can come later.


September 19th, 2021

Added support for PHP short tags on the base template.


June 17th, 2021

Fixed an issue with excluding a specific Entry from the sitemap


June 9th, 2021

Adds a fix for a crash for tags that are not used with any entries


June 8th, 2021

Initial release of a simple sitemap generator for Statamic 3 for my personal use. But thought installing via composer would be handy.