mgmeyers / obsidian-zotero-integration

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

How to set template in "Citation Formats"? #332

Open Cloudptj opened 5 months ago

Cloudptj commented 5 months ago

I want to set a template to generate a custom citation format.t I've noticed that citation templates can only use a subset of the Zotero item's data. It seems that only the data under the attachments key can be used. So, I set a template like this: ({{attachments[0].path | replace(" ","%20")}})

This template works when I import entry from zotero. But at the same, It also raise a error:

“Error converting formatted bibliography to markdown: Error: mode must be bibliograpy, not export”

The following image is how I set the citation format: QQ截图20240109153218

Is anyone know how to fix the error?