> [!column|flex no-title] >> [!menu-dark-red|ttl-c] [[Obsidian TTRPG Tutorials]] / [[Plugin Tutorials]] / [[Dataview]] / [[Dataview - List Session Journals]] > [!column|4 no-title] >> [!menu-green-1|ttl-c] [[Getting Started]] > >> [!menu-green-2|ttl-c] [[Plugin Tutorials]] > >> [!menu-green-3|ttl-c] [[Community Supported Games]] > >> [!menu-green-4|ttl-c] [[Obsidian TTRPG Tutorials/Templates/Templates\|Templates]] > [!column|3 no-title] >> [!patreon|ttl-c] [Patreon](https://www.patreon.com/JPlunkett) ([Starter Vault](https://www.patreon.com/posts/obsidian-patreon-96801399)) > >> [!discord|ttl-c] [Obsidian TTRPG Community Discord](https://discord.gg/CdM9UCJdwU) > >> [!discord|ttl-c] [Obsidian Official Discord](https://discord.gg/8AF29UBUCa) ## List the Session Journals This example can be placed in a note and will automatically generate a list of session journals. ![[Pasted image 20230708152622.png]] For this example you would have 1x note per journal. - The notes are stored in the folder: `2. Session Journals/Deadly Depth Inn` - Each note has the following [[Front Matter (YAML) and Tags|Frontmatter]]. Frontmatter is listed at the top of a note between the --- and ---. ```` --- sessionstatus: Occured type: Session Journal sessionDate: 2023-05-28 players: 6 Status: ✅ OneLiner: The party head down into the Ice Lair. --- ```` This is an example of the Frontmatter from one of the journal notes. ![[Pasted image 20230708151546.png]] <br> > [!warning] Emojis > You can add emojis into your notes including within [[Front Matter (YAML) and Tags]]. On Windows you do this by pressing `Windows Key + .` The content of the note is not important to this process. You can add what ever you like. I like to keep mine simple with no Plugin usage because I publish my Session Journals using Obsidian Publish so my players can access them. In another note this can now be typed. <br> ```` ```dataview TABLE WITHOUT ID link(file.name) AS "Session Date", Status, players, OneLiner from "2. Session Journals/Deadly Depth Inn" where (type = "Session Journal") SORT file.name DESC ``` ```` ## Combine Dataview With ITS Infobox Callouts If you are using the ITS Theme (or it's Callout Snippet) then you can combine the Infobox functionality with a dataview query to display the results of the Dataview in a table on the right hand side of a note. In the screenshot below you can see the Session Journal Dataview Table on the right. ![[Pasted image 20230708152511.png]] ```` > [!infobox] > # Session Journals > #### [[Create New Session Journal\|+New]] > ```dataview > TABLE WITHOUT ID link(file.name) AS "Session Date", Status, players, OneLiner > from "2. Session Journals/Deadly Depth Inn" > where (type = "Session Journal") > SORT file.name DESC ```` Note that the code above is missing the \`\`\` from the bottom of the code. This is not a mistake as leaving this code in does not work and is not required when combining with the callout.