Folder note template is not applied when the folder note is created
Description When I create a folder note with “Create folder note” the folder note is empty even though a Markdown template is set in Settings ▸ Folder Notes ▸ Template path. I’m using the core Templates plugin (Templater is not installed).
I think I started to encounter this issue with the latest update, before that everything worked fine.
Obsidian version
- Installer version: v1.8.7
- Current version: v1.8.10
Plugin information
- Version: v1.8.15
I've tried it with a new sandbox vault and couldn't reproduce it using the templates core plugin. Does it work for you in a new sandbox vault? If yes does it still work if you copy your data.json file from the folder notes plugin folder to the plugin folder in the sandbox vault?
Though I'm having the issue when I've auto create enabled for folder creations and I'm using templates. I tried to fix it but it just worked sometimes and sometimes it didn't even though everything was the same and it always executed the function of the templates plugin so it seems like the templates plugin is a bit buggy itself.
Resolved the issue by turning off the templates core plugin.
I also tested in the sandbox with the templates plugin, and it worked fine with standard settings. It stopped working as I replaced the standard settings using my data.json file (I made sure the templatePath was correct though). See below:
{ "syncFolderName": true, "ctrlKey": false, "altKey": true, "hideFolderNote": true, "templatePath": "06. Admin/Templates/Folder Template.md", "autoCreate": false, "autoCreateFocusFiles": false, "autoCreateForAttachmentFolder": false, "autoCreateForFiles": false, "enableCollapsing": false, "excludeFolders": [], "whitelistFolders": [], "showDeleteConfirmation": false, "underlineFolder": false, "stopWhitespaceCollapsing": true, "underlineFolderInPath": false, "openFolderNoteOnClickInPath": true, "openInNewTab": false, "focusExistingTab": false, "oldFolderNoteName": "{{folder_name}}", "folderNoteName": "{{folder_name}}", "folderNoteType": ".md", "disableFolderHighlighting": false, "newFolderNoteName": "{{folder_name}}", "storageLocation": "insideFolder", "syncDelete": false, "showRenameConfirmation": true, "defaultOverview": { "id": "", "folderPath": "File’s parent folder path", "title": "Notes", "showTitle": false, "depth": 1, "includeTypes": [ "folder", "all" ], "style": "list", "disableFileTag": false, "sortBy": "name", "sortByAsc": true, "showEmptyFolders": true, "onlyIncludeSubfolders": false, "storeFolderCondition": true, "showFolderNotes": false, "disableCollapseIcon": true, "alwaysCollapse": false, "autoSync": true, "allowDragAndDrop": true, "hideLinkList": true, "hideFolderOverview": false, "useActualLinks": true, "fmtpIntegration": false }, "useSubmenus": false, "syncMove": true, "frontMatterTitle": { "enabled": false, "explorer": true, "path": true }, "settingsTab": "general", "supportedFileTypes": [ "md" ], "boldName": false, "boldNameInPath": false, "cursiveName": false, "cursiveNameInPath": false, "disableOpenFolderNoteOnClick": true, "openByClick": true, "openWithCtrl": false, "openWithAlt": false, "excludeFolderDefaultSettings": { "type": "folder", "path": "", "subFolders": true, "disableSync": true, "disableAutoCreate": true, "disableFolderNote": false, "enableCollapsing": false, "position": 0, "excludeFromFolderOverview": false, "string": "", "hideInSettings": false }, "excludePatternDefaultSettings": { "type": "pattern", "path": "", "subFolders": true, "disableSync": true, "disableAutoCreate": true, "disableFolderNote": false, "enableCollapsing": false, "position": 0, "excludeFromFolderOverview": false, "string": "", "hideInSettings": false }, "hideCollapsingIcon": false, "hideCollapsingIconForEmptyFolders": false, "tabManagerEnabled": true, "ignoreAttachmentFolder": true, "deleteFilesAction": "trash", "openSidebar": { "mobile": false, "desktop": false }, "highlightFolder": true, "persistentSettingsTab": { "afterRestart": true, "afterChangingTab": true }, "firstTimeInsertOverview": false }