[TYPO3-mvc] Is <f:link.action> broken when linking to translated objects

Jochen Rau jochen.rau at typoplanet.de
Thu Apr 15 17:27:33 CEST 2010


Hi Henrik.

On 11.04.10 11:48, Henrik Møller Rasmussen wrote:
> Ended up with the following view-helper (if it can help anyone else):
>
> <?php
> class Tx_HmrProducts_ViewHelpers_LanguageTextlinkViewHelper extends
> Tx_Fluid_Core_ViewHelper_AbstractViewHelper {
>
> /**
> * @param Tx_HmrProducts_Domain_Model_Product $product
> * @return string
> */
> public function render(Tx_HmrProducts_Domain_Model_Product $product) {
>
> $uid =
> ($product->getL10nParent()>0)?$product->getL10nParent():$product->getUid();
>
> $typolink = array(
> 'parameter'=>$GLOBALS['TSFE']->id,
> 'additionalParams'=>'&tx_hmrproducts_pi1[product]='.$uid.'&tx_hmrproducts_pi1[action]=show&tx_hmrproducts_pi1[controller]=Product',
>
> 'useCacheHash'=>1
>
> );

Could you please test the trunk of Extbase? It should work now.

Jochen


More information about the TYPO3-project-typo3v4mvc mailing list