• 6 Posts
  • 26 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle




  • Sure, I do something similar. I have a note for a person and I have a note for a recurring meeting. In a recurring meeting I have a Dataview field called Host.

    #Meeting
    This is my meeting note
    
    Host:: [[John Doe]] 
    

    In a Person note, I have a section for meetings the person hosts. I use Dataview to search for the Host field and see of it matches the current Person note.

    #Person
    This is John Doe's note.
    
    # Meetings
    
    dataview
    table without ID file.link AS "Meeting"
    from #Meeting
    where contains(Host, this.file.link)
    
    

    The new Properties feature sounds like it’ll be what Dataview fields are. Except now it’ll be in a native interface where I can easily change the information about the note.


















  • Do you want to do something like this?

    table without ID file.link AS "Author",
    filter(file.inlinks,(x)=>contains(x.Author,file.link) & contains(x.file.path,"Book Folder")) AS "Books"
    from "Author Folder"
    sort file.name
    

    The only thing you would need to change in this code is the Book Folder and Author Folder.

    But if you would like it to be a more visually appealing gallery, there may be some community plug ins you’ll have to try.


  • Just to make sure I understand, you want your Author notes to have a Dataview table containing all the books they’ve written?

    For each Book note, do you have a field (either in YAML or inline Dataview) pointing to the Author note? What I personally do is have an inline field that links to the Author note:

    Author:: [[Stephen King]]

    Then in the Author note I’ll have this:

    table without id link(file.link,title) AS Book, Year FROM "BOOK FOLDER" WHERE contains(Author, this.file.link)

    Replace BOOK FOLDER with wherever your books are. Then you can paste this into all your Author notes. Even better, make an Author template so you don’t have to type it each time you make an Author note.