mgmeyers / obsidian-zotero-integration

Insert and import citations, bibliographies, notes, and PDF annotations from Zotero into Obsidian.
GNU General Public License v3.0
1.09k stars 55 forks source link

List with all usable variables for Nunjucks #381

Open Ferrys93de opened 3 months ago

Ferrys93de commented 3 months ago

I'm completely new to Zotero and the Zotero Integration Plugin for Obsidian, and find the provided documentation rather difficult to start up.

Is there a list with with all usable variables for Nunjucks, that can be used when creating a template? It would be very helpful to know what I can use to work with.

It did take me a while to have everything up and running. I think the documentation on the setup can be enhanced. Also, a list with the basic formatting or templating would be nice. The documentation on templating did not answer my questions.

Please don't take this as an offence. I'm willing to contribute when I have built up the necessary knowledge.

dimiarbre commented 3 months ago

Hello! I recently had the same question and found an answer in issue https://github.com/mgmeyers/obsidian-zotero-integration/issues/245, in particular https://github.com/mgmeyers/obsidian-zotero-integration/issues/245#issuecomment-1636997233 Basically, in the command palette, you can run "Zotero Integration: Data Explorer", select a Zotero Item, and view exactly which items are accessible to the plugin (cf image for an example) image This should contain all the variables that can be used in a template. As a bonus, you can even preview a template's result directly when designing your template. I hope this helps.