🌍
English
This shows you the differences between two versions of the page.
dev:extensions:plugin_tutorial2 [2011/06/17 13:05] j.commelin Distinguished the two modes of the BM |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Tutorial: Copyrights plugin ====== | ||
- | In this tutorial you will learn more about the basics of plugin development for Piwigo. This tutorial is a follow up on [[tutorial1|Tutorial: Hello World!]]. The entire plugin can be | ||
- | installed from the extension gallery under the name [[http://piwigo.org/ext/extension_view.php?eid=537|'Copyrights']]. | ||
- | |||
- | ===== Introduction ===== | ||
- | First of all, download the source code of the [[http://piwigo.org/ext/extension_view.php?eid=543|Skeleton plugin]]. We will use that as basis for this plugin. | ||
- | |||
- | ==== Outline ==== | ||
- | With this plugin we want to achieve the following: | ||
- | - Somewhere we want to manage our copyrights. | ||
- | - Somehow copyrights must be added to photos. | ||
- | - Somehow the copyright must be displayed when visitors view a photo. | ||
- | Therefore, we will write code for: | ||
- | - An administration panel, where the admin can create and edit plugins | ||
- | - An extension to the Batch manager (using events) so that copyrights can be added to photos. | ||
- | - Another event-hook that will display the copyright when a photo is viewed. | ||
- | |||
- | ===== The admin panel ===== | ||
- | |||
- | ===== Extending the Batch manager ===== | ||
- | The Batch manager comes with two modes, so we will have to write extensions to both. | ||
- | |||
- | ==== Batch Mode ==== | ||
- | |||
- | ==== Single Mode ==== | ||
- | |||
- | ===== Showing the copyrights to visitors ===== | ||