Template StringReplace for auto-generated values (e.g. tp.file.title) #534
-
Hello, For my daily notes, I use a simple template for navigating and auto-correlation:
Files are created via the Calendar-plugin, residing in Now, I am currently using the Now, I ask if it is possible to get this step done in templater itself. I unfortunately also have no knowledge about coding in JS, so I am a bit at a loss as to how one would even go about setting up custom functions. I know it's possible as per the plugin's description, but I lack even the barest knowledge for JS. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @Gewerd-Strauss 😊 If I understand correctly, you want to display in your daily note a If so, this can be done simply with this small template : <% tp.date.now("#YYYY-MM",0,tp.file.title,"DD.MM.YYYY") %> or this one: <% moment(tp.file.title,'DD.MM.YYYY').format('#YYYY-MM') %> Like for the navigation you already use they rely on the title of your daily notes and how they are formatted 😊 Now, I'm sorry in advance if I misunderstood your question and this is not what you were looking for 😅... |
Beta Was this translation helpful? Give feedback.
Hi @Gewerd-Strauss 😊
If I understand correctly, you want to display in your daily note a
#tag
formatted as#YYYY-MM
(at the creation of the daily note)? 😇If so, this can be done simply with this small template :
or this one:
Like for the navigation you already use they rely on the title of your daily notes and how they are formatted 😊
Now, I'm sorry in advance if I misunderstood your question and this is not what you were looking for 😅...