geoproject-app/public/site/models/geoformat.php
isUnknown c5cc94bf5d 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>
2026-02-26 11:29:07 +01:00

13 lines
233 B
PHP

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