redirect - How can I pass an object to a specific view on a another page in TYPO3? -


i have simple controller 2 actions:

  1. listaction - shows list of objects
  2. showaction - shows detail page of object

i using flexform plugin define detail page , can access via settings array in controller. standard view (list view) shows objects link detail page. link generated fluid link action:

<f:link.action action="show" arguments="{example: example}" pageuid="{pageid}">details</f:link.action> 

the generated links looks follows:

<a href="index.php?id=38&amp;tx_example_p1%5bexample%5d=5&amp;tx_example_p1%5baction%5d=show&amp;tx_example_p1%5bcontroller%5d=example&amp;chash=89353bbb46f26f41969f02800c5ae530">details</a> 

i think that's ok , redirect correct detail page working, seems show view not showing up, because not rendered. showaction , show.html looks follows:

show.html

<f:layout name="default" /> <f:section name="main">     <h1>detail page</h1>     <f:debug>{example}</f:debug> </f:section> 

showaction:

/**  * shows details page  *  * @param \fox\example\domain\model\example $example  * @return void  */ public function showaction(\fox\example\domain\model\example $example) {      $this->view->assign('example', $example);  } 

so seems action of fluid link action viewhelper ignored. when remove pageuid="{pageid}" link action above can see show view, not redirected correct detail page.

what doing wrong?

update

ok working when include frontend plug-in detail page, too. there way pass double include?

ok working when include frontend plug-in detail page, too. there way pass double include?

no, supposed work - plugin has present on page if should rendered there. presence can indirect though:

  • you reference plugin (using record of type "include records", or reference mechanism extension).
  • you include using typoscript (frequently used if should on many pages).

anyway, if there no specific reason have separate pages in page tree detail , list view, put them on 1 page using same plugin.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -