Skip to main content

Community library

Reusable Fluid and TYPO3 examples

Browse practical patterns shared by the FluidTYPO3 community.

31 examples

CSC: HTML wrapper for specific fluidcontent type

If you use css_styled_content and need to override the default container for a content element of type fluidcontent_content, you can achieve this using tt_content.stdWrap.outerWrap.cObject. This Gist goes one stage further and compares the name of the actual Fluid template being implemented to allow a more specific wrapper.

Read full example

Usage of v:or for multiple conditions

Shows how to use the v:or ViewHelper instead of multiple f:if conditions to select the first value that is not empty and use or output it. Explains how the ViewHelper can be used together with f:if (and any other condition ViewHelper) or as an alternative to it.

Read full example

Manual rendering of VHS menus

Shows how to manually loop and render pages using v:page.menu instead of the built-in rendering which can only be affected in key aspects like class names. Includes a demonstration and small explanation of special properties which are added to each page's data, containing a pre-built link, link text and link tag CSS class name.

Read full example