[TYPO3-english] Render website languages into form select option

Man Math manmath4 at gmail.com
Mon Feb 23 11:24:44 CET 2015


Hi List,

I am working on TYPO3 6.2.9. I have created an extension using Exbast and Fluid.

I want to render the website languages that I added in the backend into the select option form in order to let my customer to submit feedback and choose the target language.

My Website Langues:
0 => English (Default),
1 => German
2 => Spanish
3 => Italian

I want to have output like this:
<select name="tx_extension_pi1[user][language]">
  <option value=''>--select language--</option>
  <option value='0'>English</option>
  <option value="1">German</option>
  <option value="2">Spanish</option>
  <option value="3">Italian</option>
</select>

Do you have any idea or suggestion?

Thanks,
Man


More information about the TYPO3-english mailing list