obsidian-media-db-plugin icon indicating copy to clipboard operation
obsidian-media-db-plugin copied to clipboard

Allow "linkification" of properties

Open wealthychef1 opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. MediaDB fetches some properties which I'd like to convert into links For example, "author" or "director." If these are displayed as links instead of strings, then I can create notes for each of them and make cool cross-references.

Describe the solution you'd like I'd like to see a checkbox under "Property Mappings" that says "Linkify" which just turns every item in this property into a link instead of just a string. So "W.B. DuBois" becomes "[[W.B. DuBois]]"

Additional context I would use this to create tables, something I already do with Movies because I have a custom script for that which does linkify items.
Thanks!

wealthychef1 avatar Mar 17 '24 08:03 wealthychef1

Hi @wealthychef1 I requested something similar in #134

vaughanvandyk avatar May 02 '24 18:05 vaughanvandyk

Hi @wealthychef1 I requested something similar in #134

Great minds think alike.

wealthychef1 avatar May 06 '24 05:05 wealthychef1

This is already possible todo using the recently added Templater support (#119).

Install templater and add this in the template:

<% media.writer.map(author => `[[${author}]]`).join(', ') %>

This support was recently added in the 0.7.0 version of the plugin.

kelszo avatar Jun 05 '24 09:06 kelszo

Thanks for this @kelszo -- indeed Templater is super powerful for such things. However, for those of us who don't use that plugin for anything else, it would be great if this functionality were built into MediaDB directly while it is parsing the properties.

vaughanvandyk avatar Jun 30 '24 09:06 vaughanvandyk