Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:plugins:installation [2018/09/25 22:03] – [How do I update a plugin?] fasse | en:plugins:installation [2024/11/23 19:39] (current) – [Install plugins outside of an Admidio page] greno | ||
---|---|---|---|
Line 6: | Line 6: | ||
- | ===== How do I install plugins? ===== | + | ===== How do I install plugins? ===== |
Download the plugin from [[en: | Download the plugin from [[en: | ||
- | ==== Install plugin into an Admidio page ==== | + | ==== Install plugin into an Admidio |
+ | |||
+ | Check the installation instructions on the plugin page in the first step. Some Plugins supply their own installation script and integrate themselves thereby independently into our menu. In this case no further steps are necessary. | ||
+ | |||
+ | Other plugins can be integrated with a small HTML script on the overview page. For this purpose the corresponding script must be included in the template file '' | ||
+ | |||
+ | Several DIV blocks are stored there and you have to add your new DIV block behind an existing DIV block. The DIV-blocks look like this: | ||
+ | <code html>< | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | {load_admidio_plugin plugin=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | In this DIV block replace **plugin-name** with the name of the folder of your plugin and replace **plugin-file-name** with the file name containing the html-script. | ||
+ | |||
+ | If you want to include for example the Plugin '' | ||
+ | <code html>< | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | {load_admidio_plugin plugin=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Then you can reload the overview page and your plugin should be visible. | ||
+ | |||
+ | ==== Install plugin into an Admidio 3 page ==== | ||
The installation of a plugin within an Admidio page is really simple. Go to the file **adm_themes/ | The installation of a plugin within an Admidio page is really simple. Go to the file **adm_themes/ | ||
Line 23: | Line 50: | ||
You can also use the plugins outside of the Admidio pages and integrate them into your own HTML / PHP pages. However, a few additional steps are necessary. | You can also use the plugins outside of the Admidio pages and integrate them into your own HTML / PHP pages. However, a few additional steps are necessary. | ||
- | If you want to integrate the plugin into a pure html page, you should first rename the file extension of the page from html to php. Now you can integrate the plugin with help from PHP into your formerly pure HTML page. Now add the plugins | + | If you want to integrate the plugin into a pure html page, you should first rename the file extension of the page from html to php. Now you can integrate the plugin with help from PHP into your formerly pure HTML page. Now add the plugins (as an example here the plugin |
1. First the file // | 1. First the file // | ||
Line 69: | Line 96: | ||
===== Where can I configure the plugins? | ===== Where can I configure the plugins? | ||
- | You can configure most plugins via **config.php** file that is located in the same folder | + | You can configure most plugins via a **config.php** file. For this purpose, a **config_sample.php** file is usually delivered, which should be located in the folder |
- | Does the plugin | + | |
- | Updating a plugin, these 2 files should not been necessarily | + | If the plugin |
+ | |||
+ | When updating the plugin, these two files need not and should not be overwritten. | ||
An example of integration of multiple plugins in a sidebar you can see on this screenshot in the highlighted area: | An example of integration of multiple plugins in a sidebar you can see on this screenshot in the highlighted area: | ||
Line 77: | Line 106: | ||
===== How do I update a plugin? | ===== How do I update a plugin? | ||
- | If there is an update, because of a bug fix, a new feature, or due to an incompatibility with current Admidio version, you can replace the plugin folder. Download the latest version from [[http:// | + | If there is an update, because of a bug fix, a new feature, or due to an incompatibility with current Admidio version, you can replace the plugin folder. Download the latest version from [[en:plugins: |