ODD Isotope for Contao
Quick start
The theme documentation covers these topics:
Quick start
The theme documentation covers these topics:
The theme can only be installed into an empty Contao installation and is compatible with Contao 4.9 or higher.
Contao 4 requires a web server such as Apache or NGINX with PHP and MySQL support. Our theme requires Contao 4.9 or higher and PHP 7.1.
The theme can easily be installed via the Contao Manager. You find an installation guide here.
The ODD Isotope Bundle can only be installed into an empty Contao installation and is compatible with Contao 4.9 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!
Install the ODD Isotope Bundle by editing the file composer.json in the Contao root directory. Add the following lines at the end of the file (as in the example composer.json below). Replace the domain and the password.
,
"repositories": [
{
"type": "composer",
"url": "https://[DOMAIN]:[PASSWORT]@packages.contao.store"
}
]Add the following line at the end of require. Don’t forget the comma in the second-to-last line.
"contao-themes-net/odd-isotope-bundle": "^1.0"Example of what composer.json should look like for Contao 4.13:
{
"type": "project",
"require": {
"contao/calendar-bundle": "^4.13",
"contao/comments-bundle": "^4.13",
"contao/conflicts": "*@dev",
"contao/faq-bundle": "^4.13",
"contao/listing-bundle": "^4.13",
"contao/manager-bundle": "4.13.*",
"contao/news-bundle": "^4.13",
"contao/newsletter-bundle": "^4.13",
"contao-themes-net/odd-isotope-bundle": "^2.0"
},
"extra": {
"contao-component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"@php vendor/bin/contao-setup"
],
"post-update-cmd": [
"@php vendor/bin/contao-setup"
]
},
"repositories": [
{
"type": "composer",
"url": "https://BENUTZERNAME:PASSWORT@packages.contao.store"
}
]
}Now open the Contao Manager, click Update for all existing packages (i.e. only Contao) and run the update by clicking the button Apply changes at the bottom.
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.
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.
Select the menu item ODD Isotope Setup under CONTAO-THEMES-NET in the left navigation and click the button Synchronize files to create all product images and move the SQL files into the templates folder so that they can be imported.
Then empty the database table ’tl_files’ by clicking the button Empty table ’tl_files’ in the ODD Theme Setup.
Emptying the tl_files table deletes the image references. This is only necessary for the first installation of the theme.
In the install tool, import the template named odd_isotope_attributes.sql. Make sure to tick Do not truncate tables.
Then clear the cache.
When you open the install tool now, some new fields should be created. Update the database.
In the install tool, import the template named odd_isotope_demo_contao_4.x.x.sql (depending on your Contao version). Make sure to tick Do not truncate tables.
For the import to work, Contao must be installed with the bundles for news, calendar, FAQ, newsletter, listing and comments.
If you don’t want to use these Contao bundles, you can uninstall them afterwards.
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.
Under Advanced CSS settings, select the class set bootstrap4.json.
In addition, Use folder URLs must be active. You find it in the settings under Front end settings (up to Contao 4.10) or in the site structure in the settings of the website root under URL settings (Contao 4.11 and later).
Add the following line to custom.scss (file manager, under odd/scss) so that the styling is loaded:
@import '../../../public/bundles/contaothemesnetoddisotope/scss/isotope';As of Contao 4.12 the publicly accessible subfolder was renamed from /web to /public. If your installation has a /web directory, use web instead of public in the import statement.
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)
You find the Isotope manual here: User manual (German)
You can update the theme easily via the Contao Manager. Then open the install tool and update the database.
If a problem occurs after the update, also have a look at our possible solutions.
A database backup beforehand never hurts!
If you ran into problems during installation or setup, or you found a display error of the theme in a particular browser, please create a new ticket at:
Please check beforehand whether your issue is already known.