DataView sectionLink not working/rendering/returning anything?

What I’m trying to do

According to the docs, if I do dv.sectionLink(“2024-10-29”, “Health”) I should get the same result as [[2024-10-29#Health]], but I do not. It doesn’t do anything.

Using normal markdown I can get what I want, but I am going to use this more programmatically so I need the dataview part to work.

Things I have tried

I can get the whole block to throw errors if there’s a typo, but no amount of finagling that query gets it to render anything. I’ve tried multiple documents at various places in the file structure. I’ve tried using relative paths. I’ve even tried just using dv.fileLink(“2024-10-29”) and that doesn’t work either.

Apparently I need to write it out, the command just prepares the string for output, but doesn’t output it on its own.

dv.span(dv.sectionLink(“2024-10-29”, “Health”));

1 Like

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