From 7813acfa2b20901c9aa3850ab5a3a4a29c6d87ef Mon Sep 17 00:00:00 2001 From: Paul Seal Date: Thu, 7 Mar 2024 15:44:39 +0000 Subject: [PATCH] Added a check for the runtime mode and showed the relevant error message if --- .../src/views/content/content.create.controller.js | 1 + src/Umbraco.Web.UI.Client/src/views/content/create.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/content/content.create.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/content.create.controller.js index c36a0a47b8..54753a94f1 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/content.create.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/content/content.create.controller.js @@ -22,6 +22,7 @@ function contentCreateController($scope, function initialize() { $scope.loading = true; $scope.allowedTypes = null; + $scope.runtimeModeProduction = Umbraco.Sys.ServerVariables.application.runtimeMode == 'Production'; var getAllowedTypes = contentTypeResource.getAllowedTypes($scope.currentNode.id).then(function (data) { $scope.allowedTypes = iconHelper.formatContentTypeIcons(data); diff --git a/src/Umbraco.Web.UI.Client/src/views/content/create.html b/src/Umbraco.Web.UI.Client/src/views/content/create.html index e2e3fb9453..eb245c06b2 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/create.html +++ b/src/Umbraco.Web.UI.Client/src/views/content/create.html @@ -9,10 +9,10 @@
Select a blueprint
-

+

The selected page in the content tree doesn't allow for any pages to be created below it.

-
+

There are no allowed Document Types available for creating content here. You must enable these in Document Types within the Settings section, by editing the Allowed child node