eZecosystem / Mirror / Share.ez.no Blogs / Twig pagelayout for legacy modules in eZ Publish 5

Twig pagelayout for legacy modules in eZ Publish 5

(For french speaking people, the original french version of this article is available on my own blog)

As I'm currently upgrading the french Planet eZ Publish to the last eZ Publish 5, I'm also reviewing some of the bugs or the missing features I encountered when setting up the eZ Publish 5 version back in december 2012. One of those issues was about the differences between the pages generated by a legacy module (ezinfo/about, planet/search, ...) and the rest of the website. This was due to the fact that in 5.0, it was not possible to use a Twig pagelayout with a legacy module so the result of those modules were still injected in the good old pagealyout.tpl. Starting from the versions 2013.4 and 5.1, it's possible to use a Twig pagelayout on the legacy modules. That's a neat feature for a smooth and progressive upgrade to the new stack, but there are many interesting facts about it.