diff --git a/src/public/app/services/entrypoints.js b/src/public/app/services/entrypoints.js
index 10292e2c9..a794232b7 100644
--- a/src/public/app/services/entrypoints.js
+++ b/src/public/app/services/entrypoints.js
@@ -43,7 +43,6 @@ export default class Entrypoints extends Component {
const inboxNote = await dateNoteService.getInboxNote();
const {note} = await server.post(`notes/${inboxNote.noteId}/children?target=into`, {
- title: 'new note',
content: '',
type: 'text',
isProtected: inboxNote.isProtected && protectedSessionHolder.isProtectedSessionAvailable()
diff --git a/src/public/app/services/note_create.js b/src/public/app/services/note_create.js
index f1bbc2e35..0132f438a 100644
--- a/src/public/app/services/note_create.js
+++ b/src/public/app/services/note_create.js
@@ -28,8 +28,6 @@ async function createNote(parentNotePath, options = {}) {
[options.title, options.content] = parseSelectedHtml(window.cutToNote.getSelectedHtml());
}
- const newNoteName = options.title || "new note";
-
const parentNoteId = treeService.getNoteIdFromNotePath(parentNotePath);
if (options.type === 'mermaid' && !options.content) {
@@ -41,7 +39,7 @@ async function createNote(parentNotePath, options = {}) {
}
const {note, branch} = await server.post(`notes/${parentNoteId}/children?target=${options.target}&targetBranchId=${options.targetBranchId || ""}`, {
- title: newNoteName,
+ title: options.title,
content: options.content || "",
isProtected: options.isProtected,
type: options.type,
diff --git a/src/public/app/widgets/attribute_widgets/attribute_detail.js b/src/public/app/widgets/attribute_widgets/attribute_detail.js
index 01c6b80a2..85eef7c79 100644
--- a/src/public/app/widgets/attribute_widgets/attribute_detail.js
+++ b/src/public/app/widgets/attribute_widgets/attribute_detail.js
@@ -219,6 +219,15 @@ const ATTR_HELP = {
"shareDisallowRobotIndexing": `will forbid robot indexing of this note via X-Robots-Tag: noindex
header`,
"displayRelations": "comma delimited names of relations which should be displayed. All other ones will be hidden.",
"hideRelations": "comma delimited names of relations which should be hidden. All other ones will be displayed.",
+ "titleTemplate": `default title of notes created as children of this note. The value is evaluated as JavaScript string
+ and thus can be enriched with dynamic content via the injected now
and parentNote
variables. Examples:
+
+
\${parentNote.getLabelValue('authorName')}'s literary works
Log for \${now.format('YYYY-MM-DD HH:mm:ss')}