Can anyone tell me how I can make a template that populates nodes in my daily journal? I know how to make properties/set them, but I just want to populate every day with a few different headers to take notes under, but the way it was done before does not seem to work anymore.
Iâve never actually gotten round to using them myself but I believe this tutorial is that youâre wanting.
As you suggested Noelle, it appears to work differently in the new Logseq DB. The solution I found was to set up the template itself per Thorahâs link, but then instead of adding it to the config.edn, open the your âTemplatesâ page (search for using cmd-k) and youâll see your templates listed as blocks on that page.
Under each template, youâll see an âApply template to tags:â property - click that and select âJournalâ.
Now when you create new journal pages, itâll pull through the template in the same way as Logseq OG used to.
TBF this looks like a great, extensible and useful improvement in the Logseq DB - just needs to be updated in the documentation.
@oparis , were you able to get this to work in Logseq DB? I havenât been able to. The docs say ââŚApply template to tags propertyâŚFor example, create a template and configure the property to apply to #Journal. Now whenever a journal page is created, the template gets applied at the top of the page.â, but it doesnât seem to apply the template.
Yeh, Iâm using it and its working as documented.
One thing that caught me out when I was first testing it was that it will only apply the template to newly created journal pages, and those pages are only created once when you first visit the given journal page. So if youâve previously jumped ahead to a future journal page before implementing the template, the template will never get automatically re-applied to that page.
Makes sense when you think about it, but caught me out specifically when testing this feature because I was jumping around between journal pages a lot.
Do you think that could be whatâs happening in your instance?
Turns out patience was the solution to this issue. Itâs working as expected. Thanks!