Failure to show linked pages from Dataview query
Opened this issue · 2 comments
What happened?
The Projects plugin fails to show several fields from Dataview metadata. Screenshots:
Dataview
Projects
The Dataview code I used for both is:
TABLE
tags,
Tags AS "Subject Tags",
Franchise AS "Franchise",
Author as "Author",
row["Reviewed Date"] AS "Reviewed Date"
FROM -"_templates" AND #📥Inbox/🍥Fiction
SORT file.name ASC
Several pages are completely missing their Subject Tags, Franchise and Author data in the Projects plugin.
What did you expect to happen?
I expected Projects to behave similarly to Dataview when showing a Dataview query.
How can we reproduce it (as minimally and precisely as possible)?
It seems that the issue is caused by Dataview fields with multiple linked pages or linked pages with spaces in their names. For example, the metadata for Grave of the Fireflies is:
The Projects plugin fails to display the Tags and Author fields, which reference multiple linked pages.
A different example is the page Violet Evergarden Anime Series. Metadata below:
The Projects plugin fails to display the Franchise and Author fields, which reference linked pages with spaces in their names.
Anything else we need to know?
No response
Plugin version
1.0.1
Obsidian version
1.0.3
OS
Windows
The reason the values aren't showing up is because the plugin detects multiple types in the same field.
- Grave of the Fireflies is of text type
- [[Violet Evergarden]] is of link type
A field can only have one type. The plugin would need to either display [[Violet Evergarden]] as text, or "Grave of the Fireflies" as a (unresolved) link.
Hm. Another thought is to ignore links when detecting field type. For example, the Review Date is detected as a Link field rather than a date field. Need to consider the consequences of making such a change though.
Related to #71