typo3:templating:fluidtemplate
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung | |
typo3:templating:fluidtemplate [2020/06/06 21:13] – Inhaltsspalte (colPos) in Fluid auf Inhalt prüfen admin | typo3:templating:fluidtemplate [2021/03/02 19:54] (aktuell) – Condition für alternatives Fluid-Layout admin |
---|
</code> | </code> |
| |
Quelle: [[https://stackoverflow.com/a/53652375/5157290|Claus Due auf StackOverflow]] | Quelle: [[https://stackoverflow.com/a/53652375/|Claus Due auf StackOverflow]] |
| |
| ---- |
| |
| ===== Condition für alternatives Fluid-Layout ===== |
| |
| Eine ''f:if''-Condition kann problemlos innerhalb des ''name''-Arguments verwendet werden. Eine Condition um den ''f:layout''-Viewhelper herum würde aber nicht funktionieren. |
| |
| <code html> |
| <f:layout name="{f:if(condition: '{data.someData} == 123', then: 'SpecialLayout', else: 'Default')}" /> |
| </code> |
| |
| Quelle: [[https://stackoverflow.com/a/53300737/|Rudy Gnodde auf StackOverflow]] |
typo3/templating/fluidtemplate.1591470790.txt.gz · Zuletzt geändert: 2020/06/06 21:13 von admin