redirect - How can I pass an object to a specific view on a another page in TYPO3? -
i have simple controller 2 actions:
- listaction - shows list of objects
- 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&tx_example_p1%5bexample%5d=5&tx_example_p1%5baction%5d=show&tx_example_p1%5bcontroller%5d=example&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
Post a Comment