Haitham
December 25, 2022, 10:34am
1
Things I have tried
I’ve tried this, but no result:
siblings:: `$= dv.pages().where (p => p.up == dv.current().up & p.file.name != dv.current().file.name).file.link`
and this LIST WHERE up = this.up
works fine but it’s not an inline DQL.
What I’m trying to do
Hi, I’m trying to view siblings notes that have the same parent in the current note using inline Dataview.
mnvwvnm
December 25, 2022, 11:01am
2
Lack of information: are values in up
links?
One extra observation:
if you use as a value an inline query, take in consideration that the value
is the query expression, not the results produced by the query after the render/run.
Haitham
December 25, 2022, 11:02am
3
Yes, the value (up) is a link, and I don’t use inline query as a value for siblings
mnvwvnm
December 25, 2022, 11:13am
4
In js side, if a link you need to work in different way. I’m not versed in js, but I guess you can use something like this:
`$= dv.pages().where(p => p.up?.path == dv.current().up.path && p.file.name != dv.current().file.name).file.link`
1 Like
mnvwvnm
December 25, 2022, 11:14am
5
This is an inline query as a value for siblings::
field!
system
Closed
January 1, 2023, 11:14am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.