Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
en:2.0:admidio_customization [2020/10/20 20:20] – [Variablen in Template-Dateien] fasse | en:2.0:admidio_customization [2021/01/24 06:35] – [How can I customize the overview page ?] fasse | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Layout adjustments ====== | ====== Layout adjustments ====== | ||
- | ===== General | + | ===== How do I create my own theme? |
Admidio is delivered with a contemporary layout. Of course you can also use it for your website. But in many cases you might want to adapt the layout of Admidio to the layout of your website. This can range from simple color changes up to an own header and footer of the page. Some of you might even want to change the layout and adjust the content in forms or lists. | Admidio is delivered with a contemporary layout. Of course you can also use it for your website. But in many cases you might want to adapt the layout of Admidio to the layout of your website. This can range from simple color changes up to an own header and footer of the page. Some of you might even want to change the layout and adjust the content in forms or lists. | ||
This page describes the options you have to customize the given layout. The adjustments described here refer to Admidio 4.0 or a more recent version. Many things are possible, but unfortunately not everything. Admidio has historically a close connection between layout and logic. We try to separate these more and more. The relevant layout files are stored in the folder **adm_themes**. There is a subfolder for each theme. If you only want to change small things, you can do this in the existing **Simple** theme. For bigger changes we recommend to create a copy of **Simple** with a new name, e.g. **myNewTheme**. You can create as many themes as you like. The desired theme can be selected later in the settings under //Settings > General > Admidio-Theme// | This page describes the options you have to customize the given layout. The adjustments described here refer to Admidio 4.0 or a more recent version. Many things are possible, but unfortunately not everything. Admidio has historically a close connection between layout and logic. We try to separate these more and more. The relevant layout files are stored in the folder **adm_themes**. There is a subfolder for each theme. If you only want to change small things, you can do this in the existing **Simple** theme. For bigger changes we recommend to create a copy of **Simple** with a new name, e.g. **myNewTheme**. You can create as many themes as you like. The desired theme can be selected later in the settings under //Settings > General > Admidio-Theme// | ||
- | {{:en:themes: | + | {{:en:2.0: |
- | ===== Adjustments via CSS ===== | + | ===== How do I customize the layout with CSS? ===== |
Many layout adjustments can already be implemented via CSS. For this you can use the **admidio.css** file in the theme folder // | Many layout adjustments can already be implemented via CSS. For this you can use the **admidio.css** file in the theme folder // | ||
Line 32: | Line 32: | ||
Make sure that the files are included 2x slightly modified. Once in $debug mode in full length and once as minified files for productive use. You should exchange the files at both places. | Make sure that the files are included 2x slightly modified. Once in $debug mode in full length and once as minified files for productive use. You should exchange the files at both places. | ||
- | ===== Customization | + | ===== How do I edit the layout |
Admidio uses the [[https:// | Admidio uses the [[https:// | ||
Line 57: | Line 57: | ||
| {$title} | Demo Organization - My Sample Page | Title of the html page for the tag < | | {$title} | Demo Organization - My Sample Page | Title of the html page for the tag < | ||
| {$headline} | My Sample Page | Headline for the page. | | | {$headline} | My Sample Page | Headline for the page. | | ||
- | | {$urlPreviousPage} | https:// | + | | {$hasPreviousUrl} | true |
| {$organizationName} | Demo-Organization | | {$organizationName} | Demo-Organization | ||
| {$urlAdmidio} | https:// | | {$urlAdmidio} | https:// | ||
Line 82: | Line 82: | ||
The example above looks like this: | The example above looks like this: | ||
**Files of this file type are not allowed on the server.** | **Files of this file type are not allowed on the server.** | ||
+ | |||
+ | ===== How do I change icons ? ===== | ||
+ | Admidio uses the font library [[https:// | ||
+ | |||
+ | You can easily change all built-in icons using CSS. You only have to address the class //fas// via CSS and can apply all font attributes there: <code css>.fas { | ||
+ | | ||
+ | | ||
+ | }</ | ||
+ | |||
+ | ===== How can I customize the overview page ? ===== | ||
+ | Admidio normally displays an overview page with various plugins when called and after a successful login, such as the latest announcements, | ||
+ | {{: | ||
+ | If you don't want to see some of the already stored plugins or if you want to add more, you can do this in the corresponding template file. This is located at '' | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | {load_admidio_plugin plugin=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | If you want to add another plugin, you can duplicate such a block and deposit the plugin. We now create a simple HTML page that should be included in the overview. For this we create a new subfolder **test** in the folder **adm_plugins**. In this subfolder we now create a file '' | ||
+ | This is the content of < | ||
+ | <code html>< | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | {load_admidio_plugin plugin=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | {{: |