Basic Zotero plug-in development example.
Help those developing Zotero plug-ins for the first time.
This is a "hello-world" example: a simple template with no real functionality.
See ZoteroPlugins, for a detailed guide of Zotero plugins.
This is the directory structure.
-
install.rdf
-
hello_zotero-update.rdf
-
chrome.manifest
-
defaults
-
preferences
- defaults.js
-
-
chrome
-
skin
- default
- hello_zotero
- default
-
locale
-
en-US
- hello_zotero.dtd
-
-
content
-
hello_zotero
- include.js
-
-
Zotero uses the .xpi
format for plugins. This is just another name for compressed files. You may
-
Compress this repository, making sure that
install.rdf
and thechrome
directory need to be at the root of the compressed folder. -
Change the extension by renaming the file so that it ends in
.xpi
. -
Install in Zotero.
Note: Downloading a compressed file directly from GitHub will consist of a folder inside the compressed file download containing the repo. To compress this repo you will have to unzip it, enter the inner folder and zip it again.
I thank everyone involved in the projects ZotFile and Zotero-plugins. Their plugins were very useful guidance.
Distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.