[Dataview Plugin] Proper syntax for inline metadata

Hello,

Am looking for the proper syntax for multiple values for Dataview’s inline fields.
https://blacksmithgu.github.io/obsidian-dataview/

Would this work for strings?
Key:: Value 1, Value 2

2 Likes

I think inline fields doesn’t support multiple/list values.
That’s possible in frontmatter fields.
One workaround is multiply the field entries:

Key:: value 1
Key:: value 2
Lorem ipsum dolor sit amet, consectetur [key:: value 3] adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

1 Like

Depending on what you will be using it for you can still do binary checks on lists in that format. For example, if a file has this:

Animals:: “dogs”, “cats”

That file would be possible to list with:

List
WHERE contains(Animals, "cats")

The actual key value (Animals) would still have the full value of “dogs” and “cats” though, as the list query only works out if “cats” in there somewhere, anywhere. Not sure if this is useful information or not, but hey. :slight_smile:

6 Likes

Ah, I see. Thanks for the workaround!

2 Likes

Don’t think I’ll be using this approach, but this is good to know! :+1:

1 Like

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