In the Packages tab you should now see a new package to be installed. Click the button
Apply changes at the bottom to start the installation.
Once the installation is finished, click Update database.
Run all database migrations and click Continue. The first step creates all folders and files in
the file manager.
Then the missing fields are created in the database.
In the last step the demo data is imported.
Done! When you open your site, you should already see the demo.
Notes
Error: This page isn’t working / The page redirected you too many times
Edit the website root and set the protocol under URL settings to http:// or https://, depending on how
your site should be accessed.
Mittwald: some images are not displayed
Solution: switch your PHP version from FPM to CGI (under Tools > Software manager > Script languages).
Error: imagick not installed
If the error imagick not installed occurs with PHP 8.0, you can solve it with an adjustment in config.yml
and clearing the cache afterwards. More information in the PDIR blog post (German)
Subsections of Installation
Contao 4
Note
The theme can only be installed into an empty Contao installation and is compatible with Contao 4.4 or higher.
Tip
The following steps are only necessary for the first installation, not for an update of the
theme. To update the theme, simply use the Contao Manager. Then open the install tool and update the
database. A database backup never hurts!
Steps
1 / Install the NATURE Theme Bundle
First open the Contao Manager at the following URL:
www.your-domain.com/contao-manager.phar.php. Select
Discover, enter nature theme in the search field and add the package NATURE Theme.
Then switch to Packages, enter the version ^1.0 via the gear icon and start the installation of the theme with
the button Apply changes. With the latest version the Contao Manager would otherwise install version 2.x,
which is only compatible with Contao 5 and later.
2 / Update the database
Then open the install tool and update the database. You also have to create an
admin user account in the install tool.
3 / Synchronize the theme files and empty tl_files
Log in to the back end with the user account you created and select the menu item Nature Theme Setup under
CONTAO-THEMES-NET in the left navigation. Then click the button
Synchronize theme files. This creates all files in the file manager under the folder naturetheme
and copies the SQL files for the database import into the templates folder.
Then empty the database table ’tl_files’ by clicking the button Empty table ’tl_files’.
This step must be carried out before importing the database.
Note
Emptying the tl_files table deletes the image references.
This is only necessary for the first installation of the theme.
4 / Import the database
Now open the install tool. Under the tab “Import a template” you can import an .sql file from the
templates directory. Select the file for your Contao version and tick
Do not truncate tables. Then click Import a template.
If you chose the minimal Contao installation in the Contao Manager (without news, calendar, newsletter, comments,
listing, FAQ), select the SQL file named minimal_installtool.sql.
If the database was imported successfully, you should get a message that a template was imported, as shown in
the screenshot.
5 / Recreate the symlinks
Then switch back to the Contao back end, select the menu item System maintenance and recreate the
symlinks by ticking Recreate the symlinks and then clicking the button
Purge data.
6 / Settings
In the Settings, activate Auto_item and Use folder URLs under Front end settings.
As of Contao 4.7 the setting to activate auto_item no longer exists in the back end; it is always
active by default.
As of Contao 4.11 the option “Use folder URLs” is no longer in the settings but in the
website root under URL settings.
Under Advanced CSS settings, select the class set bulma.json.
Known issues
Error: This page isn’t working / The page redirected you too many times
Edit the website root and set the protocol under URL settings to http:// or https://, depending on how
your site should be accessed.
Mittwald: some images are not displayed
Solution: switch your PHP version from FPM to CGI (under Tools > Software manager > Script languages).
Error: imagick not installed
If the error imagick not installed occurs with PHP 8.0, you can solve it with an adjustment in config.yml
and clearing the cache afterwards. More information in the PDIR blog post (German)