Skip to content

Commit

Permalink
First pass at set page title for content page
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Breeze authored and nul800sebastiaan committed Sep 5, 2019
1 parent ce0712e commit f9dbf86
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f9dbf86

Please sign in to comment.