devel:plugin_file_structure
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:plugin_file_structure [2013-01-24 09:44] – [Plugin File Structure] Klap-in | devel:plugin_file_structure [2022-03-12 12:18] (current) – 93.81.212.113 | ||
---|---|---|---|
Line 3: | Line 3: | ||
There are two structures for the files of a DokuWiki plugin class. The structure chosen determines the name for the plugin class(es). | There are two structures for the files of a DokuWiki plugin class. The structure chosen determines the name for the plugin class(es). | ||
- | | + | Definitions: |
- | e.g. file | + | * ''< |
+ | * ''< | ||
+ | * ''< | ||
+ | |||
+ | Class definition: | ||
+ | |||
+ | - **Single component** of one plugin type:\\ ''< | ||
+ | e.g. file | ||
< | < | ||
- | </ | + | </ |
- | - **More components** of one plugin type:\\ ''< | + | - **More components** of one plugin type:\\ ''< |
- | e.g. file type | + | e.g. file name type |
< | < | ||
< | < | ||
- | </ | + | or |
+ | <dokuwiki>/ | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | === Name conventions of plugin name === | ||
+ | |||
+ | * an _ (underscore) is a reserved character and cannot be used in the ''< | ||
+ | * valid ''< | ||
+ | * two different plugins with the same name are mutually exclusive and inherently incompatible. | ||
- | Note that: | + | === Combining of plugin |
- | * an _ (underscore) is a reserved character and cannot be used in the ''< | + | |
- | * valid ''< | + | |
- | * two different plugins with the same name are mutually excluding | + | |
- | A plugin may contain several different plugins types as well as several different plugin classes of each type. | + | A plugin may contain several different plugins types as well as several different plugin classes(components) |
In addition, a plugin can (optionally) take advantage of other built-in facilities to have its styles, JavaScript, localisation, | In addition, a plugin can (optionally) take advantage of other built-in facilities to have its styles, JavaScript, localisation, | ||
+ | |||
+ | === File structure === | ||
All paths and files are relative to the plugin root directory. | All paths and files are relative to the plugin root directory. | ||
Line 29: | Line 44: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | |
- | * '' | + | |
- | * '' | + | * '' |
- | * '' | + | * ''< |
- | * '' | + | * ''< |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | === Use Plugin wizard === | ||
- | ===Use Plugin wizard=== | ||
The simplest and recommended way to create the initial file system structure for new plugin is to use the [[http:// | The simplest and recommended way to create the initial file system structure for new plugin is to use the [[http:// | ||
- | |||
- | |||
===== CSS Styles ===== | ===== CSS Styles ===== | ||
+ | |||
Please refer to [[devel: | Please refer to [[devel: | ||
Line 51: | Line 69: | ||
* '' | * '' | ||
+ | Since Binky, DokuWiki supports LESS parsing, you may use [[devel: | ||
===== Javascript ===== | ===== Javascript ===== | ||
+ | |||
Please read [[devel: | Please read [[devel: | ||
Line 62: | Line 82: | ||
See also [[devel: | See also [[devel: | ||
- | ===== Don't include Plugin manager files ===== | ||
- | There can be also auto-generated files around from the plugin | + | ===== Don't include Extension manager files ===== |
+ | |||
+ | There can be also auto-generated files around from the extension | ||
* ''< | * ''< | ||
* '' | * '' | ||
- | * '' | + | * '' |
===== See also ===== | ===== See also ===== | ||
+ | |||
* [[plugins|Plugin Developer documentation]] | * [[plugins|Plugin Developer documentation]] | ||
* [[Common Plugin Functions]] | * [[Common Plugin Functions]] | ||
- | * Plugin types: [[Action plugins|Action]], | + | * Plugin types: [[Action plugins|Action]], |
* [[security|Security Guidelines]] for plugin developers | * [[security|Security Guidelines]] for plugin developers | ||
* [[Plugin programming tips]] | * [[Plugin programming tips]] | ||
+ | |||
+ |
devel/plugin_file_structure.1359017065.txt.gz · Last modified: 2013-01-24 09:44 by Klap-in