[TYPO3-mvc] Is <f:link.action> broken when linking to translated objects
Henrik Møller Rasmussen
info at hmrdesign.dk
Mon Apr 19 09:46:39 CEST 2010
Hello Jochen,
It works now. Thank you!!
- Henrik
On 15/04/10 17.27, Jochen Rau wrote:
> 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