From f9dbf8646c53533fc8f869cb284f41ec84a60e64 Mon Sep 17 00:00:00 2001 From: Rachel Breeze Date: Thu, 29 Aug 2019 20:20:12 +0100 Subject: [PATCH] First pass at set page title for content page --- .../components/editor/umbeditorcontentheader.directive.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js index c82ca1481c85..8668d62d4fac 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontentheader.directive.js @@ -18,18 +18,22 @@ localizationService.localizeMany([ scope.isNew ? "placeholders_a11yCreateItem" : "placeholders_a11yEdit", - "placeholders_a11yName"] + "placeholders_a11yName", + scope.isNew?"general_new":"general_edit"] ).then(function (data) { scope.a11yMessage = data[0]; scope.a11yName = data[1]; + var title = data[2] +":"; if (!scope.isNew) { scope.a11yMessage += " " + scope.content.name; - + title += scope.content.name; } else { var name = editorState.current.contentTypeName; scope.a11yMessage += " " + name; scope.a11yName = name + " " + scope.a11yName; + title += name; } + scope.$root.locationTitle = title + " - " + scope.$root.locationTitle ; }); scope.vm = {}; scope.vm.dropdownOpen = false;