Download the PHP package quellenform/t3x-dynamic-layouts without Composer
On this page you can find all versions of the php package quellenform/t3x-dynamic-layouts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quellenform/t3x-dynamic-layouts
More information about quellenform/t3x-dynamic-layouts
Files in quellenform/t3x-dynamic-layouts
Package t3x-dynamic-layouts
Short Description Adds dynamic layouts to content elements.
License GPL-3.0-or-later
Homepage https://extensions.typo3.org/extension/dynamic-layouts
Informations about the package t3x-dynamic-layouts
Dynamic Layouts
TYPO3 CMS Extension dynamic_layouts
This extension makes the "Layout" field dynamic for content elements and also adds a field for layout styles.
What does it do?
The EXT:fluid_styled_content and EXT:bootstrap_package extensions have consistently ignored this field up to now, and their templates are hardcoded to always use only the Default template.
This extension aims to change this situation and make this field dynamic by, on the one hand, making the references to the used layout flexible, and on the other hand, allowing flexible values to be used via PageTS and TypoScript.
How to use it?
This extension adds a minor modification to the existing templates (overwriting them), which is why you must apply the same change to your custom templates.
Old:
New:
The variable {layoutName} is populated via TypoScript (DataProcessor) with the layout name you have selected, allowing you to use custom layouts.
Additionally, the field value of “layout_style” is translated into the variable {layoutStyle} in the same way, according to your TypoScript configuration, allowing you to create further custom setups.
PageTS
In PageTS, you can now define your own elements for the “Layout” field. You can also add custom layout styles for each layout.
Something like this:
TypoScript Setup
You can then use TypoScript to specify which layouts to use and which names should be used to override the selected layout styles.