Hi all! I’m a complete beginner with Obsidian and Dataview so I apologize if this question sounds naive and there is an easy solution to my issue, that I’m not aware of.
I’m using Dataview to collect snippets of text from different notes across my whole collection of notes that have a specific header. Here is the code I use, I got it from a different post here in the forum.
The code works very well to get all the written parts of the notes. But the notes also contain screenshots that I would like to have in my ‘collection’-notes. However, with my code I am only getting the written parts and this instead of the picture itself (example): Screenshot 2023-07-27 at 09.44.32.png
Is there another way to embed screenshots and pictures or something else I can do so I can solve this issue?
Hi! Thanks for your answer, but I’m not sure I understand what you mean. I embed the screenshots in the original notes as ![[Screenshot_example]]. But when I use the above code snippet to recall them in another note they just show up as IMG000.jpg.
I’m not sure where you meant to put the brackets.
You just copy and paste that into your note, and all the sections will appear with all their images and formatting. (Dataview provides a nice “Copy” button when you hover over the result which makes the process slightly easier.)
Hi!
Haha, your original code has made my life so much easier already, so thank you very much!
I’ve tried the new code you provided, and it works perfectly! Thank you again!
Is there something that could be added to this code so I include the name of the note in the snippet it provides me? Above the example header?