# $ordersPage->dirname()

> Returns the directory name (UID with optional sorting number)

- Source: `src/Cms/Page.php#L376` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/Page.php#L376>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$ordersPage->dirname(): string
```

## Return type

`string`

## Parent class

`Wagnerwagner\Merx\OrdersPage` inherited from `Kirby\Cms\Page`
