Skip to content

Commit

Permalink
Merge branch 'release/3.5.13' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 16, 2025
2 parents ab1a474 + bb2fc76 commit 980e3e6
Show file tree
Hide file tree
Showing 19 changed files with 256 additions and 143 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# SEOmatic Changelog

## 3.5.13 - 2025.01.16
### Added
* Added a `ModifySitemapQueryEvent` to allow the modification of the element query used to generate a sitemap ([#1553](https://github.com/nystudio107/craft-seomatic/issues/1553))

### Fixed
* Fixed an issue where the L2 cache was not properly invalidated for containers _after_ a preview request, which could result in stale metadata
* Handle the case where SEOmatic settings for a specific `typeId` ended up in its own metabundle in addition to the default metabundle for that section ([#1557](https://github.com/nystudio107/craft-seomatic/issues/1557))

## 3.5.12 - 2025.01.09
### Fixed
* Change default `preg_split()` flags parameter to the default `-1` to further address the platform error in ([#1561](https://github.com/nystudio107/craft-seomatic/pull/1561))
Expand Down
54 changes: 27 additions & 27 deletions buildchain/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-seomatic",
"description": "SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.",
"type": "craft-plugin",
"version": "3.5.12",
"version": "3.5.13",
"keywords": [
"craft",
"cms",
Expand Down
18 changes: 18 additions & 0 deletions docs/docs/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,24 @@ Event::on(
);
```

### ModifySitemapQueryEvent

Allows the modification of the element query used to generate a sitemap.

```php
use nystudio107\seomatic\events\ModifySitemapQueryEvent;
use nystudio107\seomatic\helpers\Sitemap;
use yii\base\Event;

Event::on(
Sitemap::class,
Sitemap::EVENT_MODIFY_SITEMAP_QUERY,
function(ModifySitemapQueryEvent $event) {
$event->query->limit(10);
}
);
```

### RegisterSitemapUrlsEvent

The event that is triggered when registering additional URLs for a sitemap.
Expand Down
Loading

0 comments on commit 980e3e6

Please sign in to comment.