typo3fluidtypo3-10.x

How to make sliding content from home layout to default layout


I'm using Typo3 10 and bootstrap_package,

I want to learn how to get benefit from this fluid code for sliding content from home page to the subpages. Frontpage has a selected backend layout (Special_start) Subpages has selected backend layout (Default)..

    <f:cObject typoscriptObjectPath="lib.dynamicContent" data="{pageUid: '{data.uid}', colPos: '3', slide: '{theme.pagelayout.{pagelayout}.colPos.3.slide}'}" />

Is there a simple solution with fluid to make the content in colpos 3 sliding in all subpages?

Thanks


Solution

  • Look at this (only bootstrap package):

    https://github.com/benjaminkott/bootstrap_package/wiki/Allow-content-slide-configuration-for-all-layouts-and-colPos

    https://github.com/benjaminkott/bootstrap_package/commit/159dda4dc614d0468559615c51b6a457e22006f3

    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:

    page.theme.pagelayout.<pagelayout>.colPos.<colPos>.slide = -1
    page.theme.pagelayout.pagets__default.colPos.9.slide = -1
    

    Fluid Example:

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

    If you want to slide colPos 3 of the default template (bootstrap package) try:

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