Skip to content

Kirby 6.0.0

$page->title()

Returns the title field or the slug as fallback

$page->title(): Field

Return type

Kirby\Content\Field

Parent class

Kirby\Cms\Page

Examples

<?= $page->title() ?>