Skip to content

Instantly share code, notes, and snippets.

@smichaelsen
Created November 13, 2014 09:54
Show Gist options
  • Save smichaelsen/d2314734f33a84367954 to your computer and use it in GitHub Desktop.
Save smichaelsen/d2314734f33a84367954 to your computer and use it in GitHub Desktop.
TYPO3 Fluid inline viewhelper in array

I regularly fail to remember the correct syntax to do this. So here it is:

<f:form.select
 property="gender"
 id="user_gender"
 options="{1: '{f:translate(key: \'orderform.customer_data.gender.w\')}', 2: '{f:translate(key: \'orderform.customer_data.gender.m\')}'}
"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment