New User - How to Make a Custom Table with File Listing of PDFs with Links

What I’m trying to do

I’m not sure if this is possible (just installed Obsidian this week and loving it so far) but I have a folder of PDFs that contains instruction manuals and receipts for a variety of things around our house. What I would love is to create a table that has a column for the item, another with links to the receipt/manual (within the “Scans” subdirectory), and maybe a column for some notes.

Things I have tried

I can get a listing of all the files using dataviewjs but I’m not sure if this can be incorporated into an editable table. This is what I have so far:

const pdfFiles = app.vault.getFiles().filter(file => file.extension === 'pdf' && file.path.includes('Family/Receipts/Scans'))
dv.list(pdfFiles.map(file => dv.fileLink(file.path)))

I’m open to installing plug-ins/etc if they would be helpful. Any thoughts or suggestions would be appreciated!

If you mean an editable table that you can type things in manually, DataView can’t do that.

Otherwise, DataView can make a table with the things you want, but you’ll need a way to indicate what item the PDF goes with and a place to store the notes. For that you would have a note file for each item, with a property containing links to or names of the associated PDFs.

Obsidian’s forthcoming Bases feature can do this too, but it’s in beta and will be for a while.

1 Like