$page->changeNum()
Changes the sorting number.
$page->changeNum(int $num = null): Kirby\Cms\Page
Parameters
Name | Type | Default | Description |
---|---|---|---|
$num |
int |
null |
Return type
Exceptions
Type | Description |
---|---|
Kirby\Exception\LogicException |
If a draft is being sorted or the directory cannot be moved |