What I’m trying to do
I have a great template that works in Obsidian, provided by @mgmeyers in Zotero Integration – Import Templates?.
What I would like to do now is extract some extra data from the annotations-allTags-tags section that is available, and verified in the import data (example image below).
which is viewed in the Obsidian Command Palette → Zotero Integration: Data Explorer
Additionally, I used some help from @alflamingo in From Zotero to Obsidian : a tag based workflow in pictures to add the desired annotation tags to a Zotero Note Template as seen below
Things I have tried
I have tried the various following code snippets with the results in the bottom image.
tags test
{{tags}}
{{tag}}
___
{% for t in tags %}{{t.tag}}{% if not loop.last %}, {% endif %}{% endfor %}
___
{allTags}
{{allTags}}
___
{% for annot in annots -%}
{%- if annot.allTags %}
> {{annot.allTags}}
{%- endif %}
{% endfor -%}
___
{% for annot in annots -%}
{%- if annot.tags.tag %}
> {{annot.tags.tag}}
{%- endif %}
{% endfor -%}
___
{tag}
{{tag}}
Does anyone have any thought on how to dig down into the annotations-allTags-tags section? I presume it’s something like YAML but I am missing it.
Thanks