Hi,
I’m sorry but I know very little about creating templates and I need some help.
When I add annotation to an item in Zotero I managed to include all I want from my notes including tags. However, once I import the annotations into Obsidian it has everything but the tags of each coment. I know it is a problem of my zotero template in obsidian. But as much I tried it is imposible to do it.
If you guys can help me with some easy customisation into my template I would be forever greatful.
Here is my template:
year: {{date | format (“YYYY”)}}
tags: research
authors: {{authors}}
tags: [literature-note, {% for t in tags %}{{t.tag}}{% if not loop.last %}, {% endif %}{% endfor %}]
Abstract: {{abstractNote}}
{{title}}
{{pdfZoteroLink}}
Notes
{% for annotation in annotations -%}{%- if annotation.annotatedText -%}{% if ‘Red’ in annotation.colorCategory %}
{{annotation.annotatedText | escape }}{% else %}
{{annotation.annotatedText | escape }} ({{annotation.page}})
{% if tags.length > 0 -%}{% for t in tags -%}#{% if t.tag == “secondary” %}source/secondary{% if not loop.last %}{% endif %}{% elif t.tag == “primary” %}source/primary{% if not loop.last %}{% endif %}{% elif “-project” in t.tag %}project/{{t.tag | lower | replace(" “, “-”) | replace(”-project", “”)}}{% else %}subject/{{t.tag | lower | replace(" “, “-”)}}{% endif %}{% if not loop.last %} {% endif %}{%- endfor %}{%- endif %}
{% if tags.length > 0 -%}{% for t in tags -%}#{% if t.tag == “secondary” %}source/secondary{% if not loop.last %}{% endif %}{% elif t.tag == “primary” %}source/primary{% if not loop.last %}{% endif %}{% elif “-project” in t.tag %}project/{{t.tag | lower | replace(” “, “-”) | replace(”-project", “”)}}{% else %}subject/{{t.tag | lower | replace(" ", “-”)}}{% endif %}{% if not loop.last %} {% endif %}{%- endfor %}{%- endif %}
{% if hashTags %}Keywords:: {{hashTags}}{% endif %}
{% if hashTags %}Tags: {{hashTags}}{% endif %}
{% endif %}{%- endif %} {% if annotation.imageRelativePath %} ![[{{annotation.imageRelativePath}}]]{% endif %}{% if annotation.comment %}
{{annotation.comment}}
{% endif %}{% endfor -%}
Thank you!