feat: add geoformat page model with coverFiles method

Expose combined files (page files + map children files) for the cover
field query in the geoformat blueprint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-25 15:00:58 +01:00
parent 9482dfa08c
commit c5cc94bf5d

View file

@ -0,0 +1,13 @@
<?php
use Kirby\Cms\Page;
class GeoformatPage extends Page
{
public function coverFiles()
{
return $this->files()->add(
$this->children()->filterBy('intendedTemplate', 'map')->files()
);
}
}