First pass at set page title for content page
This commit is contained in:
committed by
Sebastiaan Janssen
parent
ce0712e464
commit
f9dbf8646c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user