Contao news

Read the official Contao announcements.

Contao 4.1.0-RC1 is available

by Leo Feyer – Announcements

Contao version 4.1.0-beta1 is available. Please do not use beta versions for productional websites! Download the release to check whether your website or custom extension needs adaptation.

Please also read the version 4.1.0-beta1 announcement to learn more about the new features.

File searching

The file picker search has been enhanced with the type:file and type:folder flags, which allow you to search for files only or folders only.

Limiting image sizes per user

The available image sizes can now be limited on a per user or per user group basis, so that regular users can only use those image sizes that have been activated by the administrator.

PHP7 compatibility

Contao 4.1.0-RC1 is fully compatible with PHP7. (Contao 3 will be fully compatible with PHP7, too, starting with version 3.5.5.)

Loading services via System::import()

The methods System::import() and System::importStatic() now also support loading services from the Symfony container.

// config.php
$GLOBALS['TL_HOOKS']['replaceInsertTags'][] = ['app.event_listener.foo', 'replaceInsertTags'];

// Foo service
public function replaceInsertTags($tag, $cache, $value, $flags, $tags) {
    …
}

Exceptions instead of redirects

The back end now also supports the pretty error screens, which we are already using in the front end. To accomplish this, all redirects have been replaced with exceptions:

// Before
$this->log('Field "' . $this->strTable . '.' . $this->strField . '" is excluded from being edited', __METHOD__, TL_ERROR);
$this->redirect('contao/main.php?act=error');

// After
throw new AccessDeniedException('Field "' . $this->strTable . '.' . $this->strField . '" is excluded from being edited.');

Command scheduler

The command scheduler is no longer triggered via Ajax and is executed upon the kernel.terminate event instead. The response is sent to the client before the command scheduler is executed.

Installing the beta version

The beta version can only be installed via Composer.

php composer.phar create-project contao/standard-edition <target> 4.1.0-RC1

Also see: GitHub tickets | GitHub compare view | Contao changelog | Release overview

Show all news

Comments

Add a comment

What is the sum of 4 and 1?