Verschlagwortet: fluid

TYPO3: Extbase/Fluid form validation

I released a small demo extension which comes with viewhelpers and validators to validate a fluid form. It also has a password and a password confirmation field. The error messages are shown directly under...

TYPO3 Pidinrootline fluid style

If you want to check if a pid is in the current rootline you can use these ViewHelpers of vhs: <v:condition.iterator.contains needle="<the page id>" haystack="{v:page.rootline() -> v:iterator.extract(key: 'uid')}"> is in </v:condition.iterator.contains>

TYPO3: Logout link with fluid

<f:link.page pageUid="<page id>" additionalParams="{logintype:'logout'}">Abmelden</f:link.page> On this target page must be the TYPO3 Core login/logout extension.

TYPO3 Fluid: Print size of a FAL file

„files“ is the ObjectStorage object. <div xmlns="http://www.w3.org/1999/xhtml" lang="en" xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers" xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> <f:alias map="{fileElement: files.0}"> <f:if condition="{fileElement}"> Dateigröße: {v:media.size(path: fileElement.originalResource.publicUrl) -> f:format.bytes(decimals: 2, decimalSeparator: '.', thousandsSeparator: ',')} </f:if> </f:alias>

Fluid: „Link to top“

Hier ein kleiner Snippet um in Fluid einen Link zu einer bestimmten Position (ID) zu erzeugen: <f:link.page class="tocontent" section="navigation"><span class="hidden">Zur Navigation</span></f:link.page>

In TYPO3 fluid einen TCA Wizard Link rendern

Da ich selbst keine Lust habe, aufwändig den Link mit Conditions zu prüfen, ob dieser eine Page ID, Datei oder externen Link enthält, kann man sich mit einem ViewHelper helfen. Beispiel: https://github.com/andyhausmann/TYPO3_Extension_FlexSlider/blob/master/Classes/ViewHelpers/DynLinkViewHelper.php Nutzung: <fs:DynLink...