Skip to content

Kirby 5.0.1

$pageActions->changeNum()

Changes the sorting number. The sorting number must already be correct when the method is called. This only affects this page, siblings will not be resorted.

$pageActions->changeNum(int|null $num = null): Kirby\Cms\PageActions

Parameters

Name Type Default
$num intornull null

Return types

Kirby\Cms\PageActions

This method does not modify the existing $pageactions 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\PageActions