Skip to content

Kirby 3.9.8

$site->modified()

Gets the last modification date of all pages in the content folder.

$site->modified(?string $format = null, ?string $handler = null): int|string

Parameters

Name Type Default
$format string|null null
$handler string|null null

Return type

int|string

Parent class

Kirby\Cms\Site

Example

Last update: <?= $site->modified('d/m/Y H:i') ?>

$site->modified() might take (very) long for websites with many pages because it runs through all pages in the content folder. Use with caution.