What I’m trying to do / have tried
I’m having trouble getting links to a note (namely, displayed as its alias) to show in a Dataview table.
I’ve been trying to use the following to do so: link(book, book.aliases)
, where “book” is a frontmatter field with a wiki link to another note (that I’m then trying to link to by it’s alias).
For example, I have a note for a chapter of a book I’m writing, which links “up” to the note of the book it’s in (with a [[Link to the book]] in it’s frontmatter). I am then trying to link to that linked note, but have the link display its alias (a shorten version that fits better in tables).
Issues
There are two (related) problems I’m seeing.
- it doesn’t actually link to the note, as it seems to prepend a single square bracket (“[”) to the start of the path, thus looking for the note in the wrong place.
- it also appends a closing square bracket (“]”) to the end, which ends up displayed as text next to the link in the table.
This all seems to work properly when the alias is just listed on one line in the file (ie, aliases: Book 1)
), but when it gets shifted to the list form (ie, aliases: <line break> - Book 1)
) automatically with edits, the above behavior happens.