Contao 4
The theme can only be installed into an empty Contao installation and is compatible with Contao 4.4 or higher.
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 ODD Theme Bundle
First open the Contao Manager at the following URL: www.your-domain.com/contao-manager.phar.php. Select Discover, enter odd theme in the search field and add the package ODD Theme.
Then switch to Packages, enter the version ^2.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 3.x, which is only compatible with Contao 5 and later.
2 / Update the database
Then open the install tool and update the database. In the install tool you also have to create an admin user account.
You reach the install tool in the Contao Manager via the menu item Tools or via the URL: www.your-domain.com/contao/install.
3 / Synchronize the theme files and empty the table ’tl_files'
Log in to the back end with the user account you created and select the menu item ODD 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 odd 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.
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 in the following screenshot.
Alternatively, you can import the sql file with phpMyAdmin.
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.
Select the class set
In the settings under System -> Settings, select the class set bootstrap4.json in the tab Advanced CSS settings.
Done!
Your website should now show the theme’s demo content when you open your domain.
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.
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)









