-
I am writing a plugin to integrate my website, Inciteful into Zotero with a plugin: https://github.com/inciteful-xyz/inciteful-zotero-plugin I have two questions...
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Never mind I figured it out. For question 1 I just used the For question 2, there was a ztoolkit.Menu.register('collection', {
tag: 'menuitem',
id: 'zotero-collectionmenu-inciteful-search',
label: getString('menuitem.search'),
commandListener: ev => addon.hooks.onSearchCollectionEvent(ev),
icon: menuIcon
}) Hope this helps someone! |
Beta Was this translation helpful? Give feedback.
Never mind I figured it out.
For question 1 I just used the
Item.topLevelItem
property in order to make sure I was getting the information I needed.For question 2, there was a
collection
option that I had missed which I passed into the register method like so:Hope this helps someone!