Skip to content

Kirby 4.5.0

$site->modified()

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

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

Parameters

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

Return type

string|int

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.