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

Christian Futterlieb christian at futterlieb.ch
Mon Feb 23 12:14:53 CET 2015


Hi Man

You can use a MENU with special = language, see
http://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Hmenu/Index.html#special-language

Regards, Christian


On 23.02.15 11:24, Man Math wrote:
> 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