1 - What’s your level of knowledge in dataview? Until now, what have you achieved?
I use the Dataview Query Language regularly throughout my vault to generate tables, lists, etc. as needed. The only dataviewjs codeblocks I currently use I’ve copy/pasted from others. (I’m not too familiar with JS.)
I’ve taken a few cracks of my own on this and managed a) to generate a list of projects grouped under the areas with following code (copped from this forum post):
let pages = dv.pages("#projects").where(b => b.status != “archived”);
for (let group of pages.groupBy(b => b.areas)) {
dv.header(3,group.key);
dv.list(group.rows.file.name);
}
…and b) to render the Summary section of a single page using this block (from the dataview Plug-in docs):
dv.paragraph(dv.sectionLink(“A Project Page”, “Summary”, true))
2 - Sections (headers) aren’t per se metadata. Sections are an implicit metadata only if associated with lists or tasks. Dataview doesn’t work will full content.
I think dv.sectionLink()
does exactly what I want to do…? What is probably missing for me is the JS knowledge to combine both pieces above (return all projects, group them, and output the specific section for each.
@mnvwvnm can you help?