Can I use a formula to set a property (DB version)

For example, for the built-in Journal tag, I would like to create a property called Day of the week, which would take a value of Monday, Tuesday, Wednesday, etc. Since the Journal’s page title is already a date (defined by the default Logseq settings for date format), it seems it would be possible to use a formula to extract the day of the week from the date. Is that possible in Logseq?

Having used Obsidian previously, something similar was possible using the Obsidian plugin Templater.

2 Likes

I’m coming from Tana, where this is also possible. On a related note, I really liked the ability in Tana to construct a node (or in Logseq DB’s case page) title from fields/properties. I have certain conventions for naming pages for certain document types. I sometimes forget the convention or get it slightly wrong. This makes it harder, later on, to find the page(s) for which I’m looking. Having the ability to programmatically construct page names from existing page properties would be a really useful feature.

These things are not currently possible, but it would be an awesome feature request and I think the devs would be receptive to it after the app is released (you can check what they are focusing on with the live roadmap https://logseq.io/p/NX4mc_ggEV)

I wrote a post back along about programmatic properties for nodes and I suppose pages as well.

The idea being that you could set one nodes scheduled date to be three days before another.

An example use case that I come across a lot is I want the deadline for preparing for a demonstration to be a few days before the day it’s scheduled.

Obviously with one node it’s not a big deal but I often have tasks that have several steps which are somewhat into dependent and if, as happens sometimes, the scheduled date for the demonstration changes I then have to change deadlines for four different tasks which is very inefficient.

I think that’s one step above what your suggesting as your suggesting something that’s static rather than dynamic but I think the idea does intercept.