From c8efbdfe4b7e46f64fcb5bb60b35124b4ce9db4e Mon Sep 17 00:00:00 2001 From: Notanotherdotcom Date: Fri, 7 May 2021 13:16:27 -0400 Subject: [PATCH] Add PR #113 for page ID supported as page name format --- wire/core/PagesNames.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wire/core/PagesNames.php b/wire/core/PagesNames.php index 7b0cff98..e04b63fb 100644 --- a/wire/core/PagesNames.php +++ b/wire/core/PagesNames.php @@ -320,6 +320,10 @@ class PagesNames extends Wire { $name = trim((string) $page->title); $formatType = 'field'; + } else if($format === 'id' && $page->id) { + // page ID, when it is known + $name = (string) $page->id; + } else if($format === 'random') { // globally unique randomly generated page name $name = $this->uniqueRandomPageName();