Skip to content
Discussion options

You must be logged in to vote

Hi @tyf2018

I might have put it in the wrong place, p should be fed pages, not your nicely formatted names - apologies.

Try now:

var tags = dv.current().file.tags.sort(t => t.name);
if (tags) {
  for (let tag of tags) {
    dv.header(6, tag + "  同标签笔记");
    dv.paragraph(dv.pages(tag).where(p => p.file.name != dv.current().file.name)
	         .file.name.array().map(n => `[[${n}]]`).join("<br>")
                )
  }
}

However, it's odd that the error raised is that where is not a function. If the above still isn't working, can you confirm that this snippet below produces a list of the current Note's metadata? If you get the same error, try updating Dataview or ensuring it's not coming f…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tyf2018
Comment options

Answer selected by tyf2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants