Find Zotero fields to use in Obsidian templates
Open the template data explorer to find a Zotero field, such as the journal name, and copy it as a snippet you can paste into a template.
Open a literature note, run ZotLit: Open template data explorer, search for the field you need, and copy it. This page copies the journal name as {{ zt.publicationTitle }}.
A template reads everything about a paper from one name, zt: zt.title is the title and zt.authors the authors. Browsing here changes no template and touches nothing in your Zotero library. What you copy is plain text. To insert a field straight into a profile while you edit it, use Fields in the editor instead, as in Customize a template.
Open the explorer
Open a literature note. Open the command palette and run ZotLit: Open template data explorer.

The explorer opens in the right sidebar, below the annotations, and names your paper at the top.
Read the field list
Look at the panel titled Template fields. The paper's fields sit under section headings. The first section is Common fields, with Title, Authors, Date, Abstract, Published in, and Citation key. Each row shows the field's name and your paper's own value.

To look at another paper, select Choose item in the panel header and pick one under Recent, search with Search Zotero…, or choose a built-in example.
Search for the field
Type part of the field's name, such as published, in the Search note fields box.

The list shows only the matching rows. Here it shows Published in with the value PLOS Computational Biology.
Copy the snippet
Right-click the row Published in, or select its Template actions button, and select Copy output.

The menu offers Copy path, Copy value, Copy output, and Copy if present.
Check that it copied
Look at the top right of the window.

The notice Copied appears, and your clipboard holds {{ zt.publicationTitle }}. Paste it into the note text of a profile, as in Customize a template.
- A list of papers instead of fields — no literature note was active when you ran the command. Pick a paper from the list, or open a literature note and run the command again.
- No matching fields. Clear the search to see all fields. — shorten or clear the text in the search box.
- Could not copy. Select and copy the snippet below. — select the snippet text displayed on screen and copy it manually.
- The snippet items are in two submenus, Liquid and Eta — choose the language your template uses. If you are starting fresh, choose Liquid.
- Zotero asks for confirmation each time it opens Obsidian — follow Suppress the Zotero security prompt.
- The values look out of date — data updates automatically, but you can select Reload preview data from the pane menu to refresh it immediately.
- A template rendered the wrong thing and you want to report it — follow Template data in Collect debug logs.
| Menu item | What it copies |
|---|---|
| Copy output | The value, e.g. {{ zt.title }} |
| Copy if present | The value inside a block that writes it only when the paper has it |
| Copy loop | Each item of a list on its own Markdown list line (lists only) |
| Copy joined | Every item of a list on one line, separated by commas (lists only) |
| Copy path | The path alone, e.g. zt.creators[0].family |
| Copy value | This paper's value; lists and objects copy as JSON |
With JavaScript templates enabled in settings, snippet actions appear inside two submenus, "Liquid" and "Eta"; pick the language your template uses. With it off, the Liquid items sit in the menu directly.
| Where | What to select |
|---|---|
| A literature note's file menu (right-click in the file explorer or the tab) | Explore template data. Opens on that note's paper. |
| An annotation's more-options menu in the annotation sidebar | Explore template data. Opens on that annotation. |
| Zotero, right-click one item, submenu ZotLit | Explore Template Data. Needs ZotLit Companion. |
| Zotero's PDF reader, right-click an annotation | Explore Annotation in Obsidian. Needs ZotLit Companion. |
A Zotero key identifies one item, attachment, annotation, or note. Copy one when a tool asks which item to work on:
- In Obsidian, on the active literature note: run ZotLit: Copy item key, or select it from the file menu. A literature note also records this in its
zotero-keyproperty. - On an annotation row: open the more-options menu and select Copy annotation key.
- In the explorer's pane menu: select Copy item key or Copy annotation key.
- In Zotero (with ZotLit Companion): right-click rows and select ZotLit > Copy Item Key or Copy Attachment Key (selecting several rows copies one key per line). In the PDF reader, right-click an annotation and select Copy Annotation Key.
The fields an annotation template reads belong to an individual highlight rather than the paper. Select Choose annotation to choose from the paper's annotations or six built-in examples (highlight, underline, note, text, image, ink). Alternatively, under zt.annotations, open a row's more-options menu and select Explore as annotation template data. A breadcrumb labelled Note root appears; click its back button (Back to note root) to return to the paper's fields.
Next
Work through the template recipes in this order.
Last updated on