Skip to content

Instantly share code, notes, and snippets.

@dannberg
Last active April 12, 2024 00:48
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save dannberg/2fc4d0b8a3e88cc24598473f4eb626ed to your computer and use it in GitHub Desktop.
Save dannberg/2fc4d0b8a3e88cc24598473f4eb626ed to your computer and use it in GitHub Desktop.
Dann Berg's People Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. See full tutorial for setup instructions: https://dannb.org/blog/2022/obsidian-people-note-template/
---
company:
location:
title:
email:
website:
aliases:
---
tags:: [[👥 People MOC]]
# [[<% tp.file.title %>]]
<% await tp.file.move("/Extras/People/" + tp.file.title) %>
## Notes
-
## Meetings
```dataview
TABLE file.cday as Created, summary AS "Summary"
FROM "Timestamps/Meetings" where contains(file.outlinks, [[]])
SORT file.cday DESC
```
@fert-f
Copy link

fert-f commented Dec 29, 2022

Is there any way to dataview search for aliases instead of title?

@dm7500
Copy link

dm7500 commented Mar 21, 2023

Thank you for this!

Is there a way to sort the People Notes by Company name in the folder structure?

@dannberg
Copy link
Author

Thank you for this!

Is there a way to sort the People Notes by Company name in the folder structure?

@dm7500 If you name the file names to start with [Company name] then they will sort alphabetically in the directories. However, this can also be done inside a note using the Dataview plugin. As long as company name is in the YAML of each note, you can modify a dataview table to SORT by company name.

@high5rise
Copy link

Thank you -- a newcomer to Obsidian, and your templates have been awesome.
I'm having trouble with the people template, as the template itself gets automatically moved to my People folder instead of staying in the Templates folder. Any suggestions?

@dannberg
Copy link
Author

@high5rise At what point is the Template itself moving to the People folder? This can happen if you're running the "Replace templates in the active file" function from the Templater plugin while the Template file is active. But if you've created a NEW page using the Template file, and then run the function on the new page, then the Template file shouldn't be impacted.

@high5rise
Copy link

Ah, that solved the issue: I didn't have the "Trigger Templator on new file creation" option toggled on. Instead, I had put in the template in the Startup Template field, which was causing the move issue at startup of Obsidian. Should have followed the instructions! =) Thanks, @dannberg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment