developers.jseidl.at
WebsiteGitHubCodePen
  • developers.jseidl.at
  • CSS
    • Bootstrap NoGutter
    • Center image
    • Hamburger Menu (Mobile Menu)
    • Table-Cell
    • mMenu Hide
  • JavaScript
    • Scroll to Element
  • Typo3
    • Cookiebanner
    • DCE Backgroundimage (Section use)
    • DCE Background Image
    • Custom Form for Indexed Search
    • Frontendlayouts for Bodyclasses
    • Frontendlayouts
  • Utils
    • Force SSL
Powered by GitBook

Copyright 2024 - jseidl.at Julian Seidl

On this page
  • PageTS
  • SetupTS

Was this helpful?

  1. Typo3

Frontendlayouts for Bodyclasses

If you want for a specific page a specific layout or other custom things, you can add body classes. In TYPO3 you can add a class via Frontendlayouts.

PageTS

### 0 = Default
TCEFORM.pages.layout {
    addItems {
        1 = Features
        2 = Stories
        3 = Pricing
    }
    altLabels {
        1 = Features
        2 = Stories
        3 = Pricing
    }
}

SetupTS

[page|layout = 1]
page.bodyTagCObject = COA
page.bodyTagCObject.wrap = <body class="features-page">
}
[end]
[page|layout = 2]
page.bodyTagCObject = COA
page.bodyTagCObject.wrap = <body class="stories-page">
}
[end]
[page|layout = 3]
page.bodyTagCObject = COA
page.bodyTagCObject.wrap = <body class="pricing-page">
}
[end]

Last updated 1 year ago

Was this helpful?