Skip to content

Template StringReplace for auto-generated values (e.g. tp.file.title) #534

Answered by I-Pch
Gewerd-Strauss asked this question in Help
Discussion options

You must be logged in to vote

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 :

<% 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 😅...

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Gewerd-Strauss
Comment options

@I-Pch
Comment options

Answer selected by Gewerd-Strauss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants