Is it possible for templater to auto-generate a block id for a list or task item

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

I am using dataview to query tasks or lists according to fields generated by embeding template file at the end of the item. It is very useful if templater can auto-generate block Id so In the dataview query I can build link to the items.
Maybe templater has got a solution already

Things I have tried

I didn’t find the solution

You can use this plugin: GitHub - adziok/obsidian-incremental-id
I think this fulfils what you want.

1 Like

works, thank you.

1 Like

I’ve not looked into that other plugin, but a blockId is just a “random” collection of alphanumeric characters, so you’re free to generate these as you like from within Templater or through other means of generating your text.

See Internal links - Obsidian Help near the end for a little more on the syntax of these ids.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.