[TYPO3-mvc] $content parameter to link.action
Martin Kutschker
masi-no at spam-typo3.org
Mon Jan 4 17:07:00 CET 2010
Steffen Ritter schrieb:
> Martin Kutschker schrieb:
>> Hi!
>>
>> I am missing a simple way to make a localized link. Look at that example:
>>
>> <f:link.action action="index" controller="foobar"
>> content="{f:translate(key:'foobar')}"/>
>>
>> A simple additional parameter to
>> Tx_Fluid_ViewHelpers_Link_ActionViewHelper::render() did the trick.
>>
>> Any comments?
>>
>> Masi
>
> I think the Link handler automatically should preserve the linkVars? If
> not, we should file a bugreport? For other languages
> parameters="{L:'2'}" should work... i think...
I think you misunderstood me.
Compare
<f:link.action action="index" controller="foobar" content="{f:translate(key:'foobar')}"/>
with
<f:link.action action="index" controller="foobar">
<f:translate key="foobar">falllback text</f:translate>
</f:link.action>
My idea was to move the translatable content directly into the link.action element for brevity.
Masi
More information about the TYPO3-project-typo3v4mvc
mailing list