Using DataviewJS inside Templater

Perfect! So my solution for finding the “site” note in the metadata of the current page and fetching the “address” metadata from that “site” note now looks like this:

<%* 
dv = app.plugins.plugins.dataview.api;
tR += await dv.page(dv.page(tp.file.path(true)).site).address; 
%>

Seems to work perfectly! Thanks, all!

1 Like