Skip to content

Allow content slide configuration for all layouts and colPos

Andrea Moroni edited this page Jul 8, 2022 · 2 revisions

It is now possible to make content columns slide without touching the templates. The typoscript lib for content selection now accepts a slide parameter, that can be used to define the data collection behaviour.

Allowed Values:
-1 = back up to the siteroot
0 = default, no slide
1 = only the current level
2 = up from one level back

TypoScript Constants Example:

Syntax:
page.theme.pagelayout.<pagelayout>.colPos.<colPos>.slide = -1

Slide Content in ColPos 'AfterContent':

page.theme.pagelayout.default.colPos.9.slide = -1

Slide Content in ColPos 'Border':

page.theme.pagelayout.subnavigation_right.colPos.3.slide = -1

Fluid Example:

<f:cObject typoscriptObjectPath="lib.dynamicContent" data="{colPos: '9', slide: '-1'}" />