Kimaris
December 10, 2023, 7:43pm
1
What I’m trying to do
I’m trying to assign 2 links as metadata using dataview plug-in.
Like this
[pages:: [[Thanks]], [[Expectations]]]
However, in display mode, it only displays the last item in the list.
What I’m trying to achieve is adding viewable properties to the page using meta-data, that I also can query later, e.g. using.
\```dataview
LIST
WHERE contains(pages, [[Thanks]])
\```
Things I have tried
I’ve tried the code above. The query works for both elements in the list. However, I also want to be able to see both elements as well.
Thanks!
Anwen
December 10, 2023, 8:21pm
2
This need to be a list. So you need to put them between [ ].
Like this :
[pages:: [[[Thanks]], [[Expectations]]]]
holroy
December 10, 2023, 9:27pm
3
What @Anwen says is correct, it needs to be a list. And it can be declared as they suggest. In the special case that this is the entire paragraph, you can also use the following markup:
pages:: [[Thanks]], [[Expectations]]
1 Like
system
Closed
March 9, 2024, 9:28pm
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.