Dataviewjs - links don't work

Hi! Help me out please, I don’t know what’s wrong.

Cribbed from a post by @PchFiltering pages using DataviewJS, where a property is a file link - #2 by Pch – the code below seems to work:

---
tags: mytag
myproperty:
  - some
  - "[[Dataview]]"
---

```dataviewjs
dv. table(["File"], dv. pages ("#mytag")
.where(p => dv.func.contains(p.myproperty, dv.func.link("Dataview")))
.sort(b => b.rating)
.map(b => [b.file.link]))
```

```dataviewjs
dv. table(["File"], dv. pages ("#mytag")
.where(p => p?.myproperty?.includes("some"))
.sort(b => b.rating)
.map(b => [b.file.link]))
```

1 Like

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