Skip to content

$page->changeNum()

Changes the sorting number.

$page->changeNum(int $num = null): Kirby\Cms\Page

Parameters

Name Type Default
$num int null

Return type

Kirby\Cms\Page

This method does not modify the existing $page object but returns a new object with the changes applied. Learn more →

Exceptions

Type Description
Kirby\Exception\LogicException If a draft is being sorted or the directory cannot be moved

Parent class

Kirby\Cms\Page