About Leo Feyer
Leo is the lead developer of Contao and, together with the core team, ensures that the future of Contao begins in the present. During the day he is a server administrator at Hostingwerk and at night he codes the heck out of it.
by Leo Feyer
This article describes the changes and improvements of the upcoming TYPOlight version 2.8. It is meant as an information for administrators and developers and not as an introduction of the new version. A news article and a video introducing the new features will be published together with the first release candidate.
The biggest change in version 2.8 will be the handling of MooTools scripts.

As you see, you can now choose multiple MooTools templates that initialize different MooTools applications like the accordion, the slimbox or the mediabox (new in version 2.8). In addition, you can enter custom JavaScript code that will be added at the bottom of the page. Of course, you can also use the new interface for your custom extensions:
$GLOBALS['TL_MOOTOOLS'][] = '<script type="text/javascript" src="script.js"></script>';
In contrast to the additional head tags, MooTools scripts will be added at the bottom of the page.
In version 2.8, you can define the media type of a dynamically added style sheet:
$GLOBALS['TL_CSS'][] = 'path/to/style.css|screen,handheld';
Mandatory fields will still be marked with a star, however it will be nested inside the label tag, so tableless layouts will not break.
<label for="text">Text <span class="mandatory">*</span></label>
To improve the overall performance of TYPOlight, a database query cache has been added to avoid sending the same SELECT query multiple times (unless of course the result set is being modified). If you explicitely want to bypass the database cache, you can use the new method executeUncached().
$result = $this->Database->executeUncached("SELECT * FROM …");
Both front end modules now trigger the onload_callback and save_callback defined in the Data Container Array (tl_member). If you have defined custom callbacks, make sure to check the origin of the request:
function onload_callback()
{
if (TL_MODE == 'FE') {
// Front end code
} else {
// Back end code
}
}
The following hooks have been added in version 2.8:
| Name | Description |
|---|---|
| generatePage | is triggered before the main layout template is compiled |
| printArticleAsPdf | is triggered when an article is exported as PDF |
| addLogEntry | is triggered when a log entry is added |
| loadLanguageFile | is triggered when a language file is loaded |
| activateRecipient | is triggered when a newsletter recipient is added (subscribe) |
| removeRecipient | is triggered when a newsletter recipient is removed (unsubscribe) |
The event reader template is now called event_full instead of event_default. The image gallery content element now uses a switchable template file (partial) called gallery_default. The main page template fe_page has been modified (see revision 59).
The following front end templates have been modified (see revision 59). In case you have customized one or more of them, make sure to apply the changes to your own versions.
The following front end templates are not used anymore and have been removed (see revision 58):
The following core modules will be moved to the Extension Repository:
See the ticket system for the complete changelog. The first release candidate of TYPOlight 2.8 will be published in November 2009, the final release is expected to be published in the first quarter of 2010.
Leo is the lead developer of Contao and, together with the core team, ensures that the future of Contao begins in the present. During the day he is a server administrator at Hostingwerk and at night he codes the heck out of it.
Comments
Comment by Mark Hurd |
By adding custom JS to the bottom of the page, and the small tweak to the form generator labels, TL has managed to get even closer to my actual workflow. I swear the team is developing this just for me. :)
Comment by Twisterson |
Comment by Michiel |
Comment by Matz Särås |
Comment by Ross Garcia |
Add a comment