Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:sample_plugin [2011/08/30 19:43]
kd
dev:sample_plugin [2017/11/12 19:53] (current)
Line 1: Line 1:
 +<​html><​p id="​zotero-5-update-warning"​ style="​color:​ red; font-weight:​ bold">​We’re
 +in the process of updating the documentation for
 +<a href="​https://​www.zotero.org/​blog/​zotero-5-0">​Zotero 5.0</​a>​. Some documentation
 +may be outdated in the meantime. Thanks for your understanding.</​p></​html>​
 +
 +
 ====== A Sample Zotero Plugin ====== ====== A Sample Zotero Plugin ======
  
Line 6: Line 12:
  
  
-For more information on the basic elements and layout of a Firefox extension, see [[http://​developer.mozilla.org/​en/​docs/​Building_an_Extension|Building an Extension]] in the Mozilla Developer Center.+For more information on the basic elements and layout of a Firefox extension, see the [[https://​developer.mozilla.org/​en-US/docs/XUL_School|XUL School Tutorial]] in the Mozilla Developer Center.
  
 The most important code is in [[https://​www.zotero.org/​trac/​browser/​plugins/​helloworld/​trunk/​chrome/​content/​helloworldzotero/​hello.js|chrome://​helloworldzotero/​content/​hello.js]],​ which defines a method to insert a new item into the Zotero database and registers a callback function with the Zotero Notifier to receive a notification when an item is modified. The script is loaded by [[https://​www.zotero.org/​trac/​browser/​plugins/​helloworld/​trunk/​chrome/​content/​helloworldzotero/​include.js|chrome://​helloworldzotero/​content/​include.js]],​ which is included into the main overlay by [[https://​www.zotero.org/​trac/​browser/​plugins/​helloworld/​trunk/​chrome/​content/​helloworldzotero/​overlay.xul|chrome/​content/​helloworldzotero/​overlay.xul]]. The latter also adds a menu item to the Zotero Actions menu. The most important code is in [[https://​www.zotero.org/​trac/​browser/​plugins/​helloworld/​trunk/​chrome/​content/​helloworldzotero/​hello.js|chrome://​helloworldzotero/​content/​hello.js]],​ which defines a method to insert a new item into the Zotero database and registers a callback function with the Zotero Notifier to receive a notification when an item is modified. The script is loaded by [[https://​www.zotero.org/​trac/​browser/​plugins/​helloworld/​trunk/​chrome/​content/​helloworldzotero/​include.js|chrome://​helloworldzotero/​content/​include.js]],​ which is included into the main overlay by [[https://​www.zotero.org/​trac/​browser/​plugins/​helloworld/​trunk/​chrome/​content/​helloworldzotero/​overlay.xul|chrome/​content/​helloworldzotero/​overlay.xul]]. The latter also adds a menu item to the Zotero Actions menu.
dev/sample_plugin.txt · Last modified: 2017/11/12 19:53 (external edit)