Merx

$orderPage->changeNum()

Changes the sorting number. Low-level method, ensure to run all necessary checks (e.g. permissions) before calling it. The sorting number must already be correct when the method is called. This only affects this page, siblings will not be resorted.

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

Parameters

Name Type Default
$num null or int null

Return type

Kirby\Cms\Page

Exceptions

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

Parent class

Wagnerwagner\Merx\OrderPage inherited from Kirby\Cms\Page