Skip to content
Discussion options

You must be logged in to vote

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:

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!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@quinn-p-mchugh
Comment options

Answer selected by weishuhn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants