DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

TemplatingΒΆ

Using the following Page TsConfig the editor can select the layouts in the news plugin:

tx_owlcarousel.templateLayouts {
    1 = A custom layout
    99 = LLL:fileadmin/somelocallang/locallang.xlf:someTranslation
}

You can use any number to identify your layout and any label to describe it.

Now it is possible to use a condition in the template to change the layouts, and e.g. load a different partial:

<f:if condition="{settings.templateLayout} == 99">
    <f:then>
        Something
    </f:then>
    <f:else>
        Something else
    </f:else>
</f:if>