[TYPO3-mvc] switchableControllerActions and f:link.action

Cornelius Illi cornelius.illi at student.hpi.uni-potsdam.de
Thu Apr 29 13:51:40 CEST 2010


Hi Stephan,

thanks! But you don't know of any solution that does not require a 
seperate details-page, i.e get the action-parameter evaluted when 
dispatching although switchableControllerActions is set?
Cheers, Cornelius

Am 29.04.2010 13:47, schrieb Stephan Reuther - development.IT:
> Hi Cornelius,
>
> Zitat von Cornelius Illi<cornelius.illi at student.hpi.uni-potsdam.de>:
>
>    
>> Then I could create a details-page, but<f:link.page
>> additionalParams="{ plugin[myVar] : 1234 }">  does not accept nested
>> vars.
>>      
>    
>> if($this->request->hasArgument("action") ) {
>>              if($this->request->getArgument("action") == "view")
>>                  return $this->forward("view");
>> }
>>
>> Is there a better solution?
>>      
> indeed, there is :)
> please have a look at examples in LinkViewHelper.php
>
> http://forge.typo3.org/repositories/entry/typo3v4-mvc/fluid/trunk/Classes/ViewHelpers/Link/PageViewHelper.php
>
>    <code title="query parameters for extensions">
>    <f:link.page pageUid="1" additionalParams="{extension_key: {foo:
> 'bar'}}">page link</f:link.page>
>    </code>
>
>    Output:
>    <a href="index.php?id=1&extension_key[foo]=bar">page link</f:link.action>
>    (depending on your TS configuration)
>
>
> your approach is nearbythe way it is done here, use additionalParas this way:
> {extension_key: {myVar : 1234 }}
>
> and it will work.
>
>
> stephan
>
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>    



More information about the TYPO3-project-typo3v4mvc mailing list