Skip to content

Kirby 5.1.1

$page->dirname()

Returns the directory name (UID with optional sorting number)

$page->dirname(): string

Return type

string

This method modifies the existing $page object it is applied to and returns it again.

Parent class

Kirby\Cms\Page

Examples

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