How would I go about automating adding specific tasks to a note based on css class?

What I’m trying to do

For example: adding ‘Sunday’ to cssclasses in propeties would automatically add the task ‘take out the trash’.

Any help would be greatly appreciated.

Things I have tried

First of all, you can’t add an HTML element or replace existing elements on your page (note in your example) using solely CSS. Additionally, CSS can insert text content before or after an element.

So, I guess it’s impossible without the help of JS / TS / Template(r), …

I do not know the nature of your work/flow, but I suggest creating a template Sunday with a task take out the trash. You can apply that one to the specific note. If you need to have the property cssclass, you can also add this in the template.

Hope it helps you with further investigation of possibilities.

Cheers, Marko :nerd_face:

1 Like