How to use dataviewjs to list files with the tags in metadata behind the file link

Hi friends. I am trying to use dataviewjs to list all my files with the tags in metadata right behind the file link. That should be like

  • <A Clickable File Link>: #tag1, #tag2, #tag3
  • <Another Clickable File Link>: #tag4, #tag5, #tag6

I am not good at programming but I managed to finish this:

```dataviewjs
for (let Group of dv.pages('"inbox"').groupBy(p => p.title))
dv.paragraph(
Group.rows.map(k => [k.file.link + ":" + k.file.tags.map(t => {return ` ${t}`})])
)
```

But it outputs with things like

Obviously I want to have only one dot for each item. And I’ve got no idea about how to adjust the code. If you could provide some advice, that would be so great. Thank you so much.

I’m not able to give you any advice in dataviewjs, but I can suggest this simple dataview query:

LIST join(file.tags, ", ")
FROM "inbox"
1 Like

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