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...
Einiges über TYPO3, symfony und Webentwicklung
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...
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>
<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.
„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>
You can use the VHS ViewHelper. {namespace v=Tx_Vhs_ViewHelpers} <v:render.template file="EXT:extkey/Resources/Private/Partials/Foo/Bar.html" variables="{param1: param1}" />
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>
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...
Mehr