diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index b0e81e0b..2797c931 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +1.10.5 (Unreleased) +---------------------- +- Enh #336: Renaming page and snippet to global and space types + 1.10.4 (June 19, 2024) ---------------------- - Fix #328: Missing Iframe attributes in snippet diff --git a/models/CustomContentContainer.php b/models/CustomContentContainer.php index fd88778e..9ad410ba 100644 --- a/models/CustomContentContainer.php +++ b/models/CustomContentContainer.php @@ -229,7 +229,9 @@ public function getContentName() return $target->contentName; } - return PageType::getContentName($this->getPageType()); + $containerClass = $this instanceof ContainerPage || $this instanceof ContainerSnippet ? Space::class : null; + + return PageType::getContentName($this->getPageType(), $containerClass); } private function getRulesByContentType() diff --git a/models/PageType.php b/models/PageType.php index 9eaf48e9..78901b8b 100644 --- a/models/PageType.php +++ b/models/PageType.php @@ -1,33 +1,27 @@