A TYPO3 plugin to display a list of languages to select from. Clicking on a language links to the corresponding version of the page.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
1.2 KiB

<f:comment>Select option template</f:comment>
<f:if condition="{option.isCurrent}">
<f:then>
<f:if condition="{settings.list.showCurrent}">
<f:if condition="{option.externalUrl}">
<f:then>
<option value="{f:uri.external(uri: '{option.externalUrl}')->f:format.htmlentities()}" {f:if(condition: '{settings.list.header}', then: '', else: ' selected="selected"')}>{option.title}</option>
</f:then>
<f:else>
<option value="{f:uri.page(additionalParams: {L: '{option.uid}'}, addQueryString: '1', addQueryStringMethod: 'GET', argumentsToBeExcludedFromQueryString: '{settings.removeParams}')->f:format.htmlentities()}" {f:if(condition: '{settings.list.header}', then: '', else: ' selected="selected"')}>{option.title}</option>
</f:else>
</f:if>
</f:if>
</f:then>
<f:else>
<f:if condition="{option.externalUrl}">
<f:then>
<option value="{f:uri.external(uri: '{option.externalUrl}')}">{option.title}</option>
</f:then>
<f:else>
<option value="{f:uri.page(additionalParams: {L: '{option.uid}'}, addQueryString: '1', addQueryStringMethod: 'GET', argumentsToBeExcludedFromQueryString: '{settings.removeParams}')->f:format.htmlentities()}">{option.title}</option>
</f:else>
</f:if>
</f:else>
</f:if>