contao/test — Issue #2062: Move "custom layout sections" setting to theme or page layout
Author: importer
Created: 2011-11-29 09:03:11+00:00
State: open
Labels: Accepted, Feature, framework

As we have now multiple themes and therefore also several page layouts that can be switched from/to. It appears necessary to be able to export the custom layout sections within the theme aswell as every theme designer will otherwise have to instruct the "user" to additionally specify the layout sections within the settings.
Imagine an installation of 5 sites, each using a different theme of which each uses 5 different custom layout sections.
So this makes 25 custom layout sections to be specified in the global settings.

I'd suggest to either alter the setting in localconfig or, IMO better, arraymerge the setting in localconfig (for backwards compatibility) with a new setting within a theme.
This should be straight forward to implement, as we have to fetch the theme id in the module wizard anyway.

In PageRegular we do not need the information as the modules will create the layout section they are contained within "on the fly" within the loop regardless if it is specified in the custom sections or not.

Using this simple approach, the designer can already "tell the user" what layout sections are necessary (as they will be available within the corresponding layout and only in that layout).

Related issues: #2011, #2885

--- _Originally created by xtra on June 1st, 2010, at 09:55am (ID 2062)_