Want only comments to pull with Zotero integration

Hi all,

I have two templates for the Zotero Integration. The first template lists the highlights and page numbers and works fine. THe second template is just supose to grab the comments and the page numbers. This is the current template:

{% persist "annotations" %}

{% set newAnnotations = annotations | filterby("date","dateafter", lastImportDate) %}

{% if newAnnotations.length > 0 %}

{{importDate | format("YYYYMMDD")}}

{% for annotations in newAnnotations %}

{% if annotations.comment %}**Note:** {{annotations.comment}}{% endif %} **Page:** {{a.page}}

{% endfor %}

{% endif %}

{% endpersist %}

When I run it, it lists every single page number that is annotated, leaving out the highlights. Then, when there’s a comment, it will list it. I want it to just show the comments. I hope that makes sense.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.