What I am trying to do
I would like to create a Dataview table with link to a field linked within the queried note. This is 3 “levels” of notes. For example:
- I have notes on people, e.g., this note on [[jane doe]]:
---
last_name: doe
first_name: jane
---
Friends with Jack and Jill
- I have notes where I reference people, e.g., [[meeting]]:
---
person_yaml: [[jane doe]]
location: work
---
person_dv:: [[jane doe]]
We had a productive meeting.
- I have a note which is an index of notes referencing people, i.e., [[table]]. This note includes the YAML from [[meeting]] as fields, including a link to the linked person note:
TABLE WITHOUT ID
location, person_yaml, person_dv, person_yaml.last_name, person_dv.last_name
FROM "dataview-links/meeting"
Issue
I expect [[table]] to include the 2 YAML fields from [[meeting]], with location
displaying “work” as a string, and person_yaml
displaying “jane doe” as a link. However, this doesn’t work, and instead person_yaml
displays “jane doe” as a string preceded by a dot.
I do get the expected behavior when using Dataview inline field, i.e., person_dv
. This also allows me to display text from within the linked note, i.e., “doe” from the last_name
field of [[jane doe]].
I understand the Obsidian itself doesn’t allow for wikilinks in YAML (Wikilinks in YAML front matter), but per the Dataview documentation on links within queries, I believe that I should be able to query links in both YAML and Dataview inline fields, so I don’t understand why the YAML field isn’t displaying as expected.
Any clarification or suggestion would be very much appreciated!