Calling Tags

Hi folx,

I am very new to Zotero and coding in general. I'm trying to get this CodePen to display my tags. I want to embed this frame into a notion page for a research project I'm doing. It previously called item.data.publicationTitle. I wasn't sure what to call for it to print out the tags associated with each item so tried changing it to item.data.tags, which is the only variable I was able to get to call for anything associated with the tag list. I tried to search for this error based on past discussions, but since I'm so new to things a lot of it went over my head. Does anyone have any advice?

My Codepen: https://codepen.io/pixouls-the-encoder/full/PozRYqm
Original Codepen: https://codepen.io/freshyill/pen/oRbmxO
  • Please ask API questions at https://groups.google.com/g/zotero-dev

    You’ll get much faster and better answers there
  • edited October 30, 2020
    (but in case that helps, tags is an array of objects, so the first tag is item.data.tags[0]["tag"] etc.)
  • edited October 30, 2020
    @bwiernik thank you I wasn't aware of the google group
    @adamsmith thanks for the tip, i only learned how to use arrays recently, but this is a helpful lead! do you think i could set some variable so that it will allow me to iterate through all existing tags? i think I'm gonna see if i can try something like that haha
Sign In or Register to comment.