plugins
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugins [2021/10/01 11:23] – witsec | plugins [2024/09/01 14:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
Plugins are loaded through the '' | Plugins are loaded through the '' | ||
- | < | + | < |
+ | " | ||
" | " | ||
- | ],</ | + | ] |
+ | </ | ||
These few lines tell Mobirise that plugins can be found in the '' | These few lines tell Mobirise that plugins can be found in the '' | ||
Line 19: | Line 21: | ||
Each directory that contains one or more plugins should have a '' | Each directory that contains one or more plugins should have a '' | ||
- | < | + | < |
[ | [ | ||
{ | { | ||
Line 41: | Line 43: | ||
=== files === | === files === | ||
This is a list of one or more files you want to load or publish. Mobirise is smart enough to automatically place JavaScript files in the HTML. If you want to load images or other file types, Mobirise will simply publish them, without putting them in any HTML. | This is a list of one or more files you want to load or publish. Mobirise is smart enough to automatically place JavaScript files in the HTML. If you want to load images or other file types, Mobirise will simply publish them, without putting them in any HTML. | ||
+ | |||
+ | Files don't **have** to be in their own folder, but especially if you have multiple files for a plugin, it's easier to manage them by placing them in their own folder. | ||
Line 60: | Line 64: | ||
There' | There' | ||
- | < | + | < |
[ | [ | ||
{ | { | ||
Line 74: | Line 78: | ||
If the condition is met, the plugin will be loaded. In this case you've set it to '' | If the condition is met, the plugin will be loaded. In this case you've set it to '' | ||
+ | |||
+ | It's also possible to have the plugin rely on a theme or parameter setting. For example, if your plugin should only be loaded if the " | ||
+ | |||
+ | <code javascript> | ||
+ | [ | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | ] | ||
+ | </ |
plugins.1633080209.txt.gz · Last modified: 2024/09/01 14:30 (external edit)