I have several files with dataview inline fields. minimal example is:
some text with [link-type2::[[File3]]]
some text with [link-type2::[[File1]]]
only has [link-type1::[[File1]]]
In my case, I want to create a table that collects all backlinks and shows their type. In the more general case (where my key::values were not links but something else), I need to collect the fields that share a specific value, and display in a column what their key is.
For Example, I want to add a table to File2 that looks like
(note no entry for File3, because it has no link to File2)
and in File3:
This is my current best result:
Table choice(contains(link-type1,this.file.link),"link-type1",choice(contains(link-type2,this.file.link),"link-type2","None")) As Relation Where Relation != "None"
But it shows all the Nones anyway.
This approach is not a good answer anyway, because it hard-codes the possible keys and would be hard to maintain with more link-types.
Is there some sort of grouping approach to this?