[TYPO3-mvc] Redirect Controller to new URL and pass throug objs

Claus Due claus at wildside.dk
Wed Jun 8 13:41:11 CEST 2011


Hi Sebastian,

Try:

// landing pageform
<f:form action="landingpage" pageUid="123" method="post">
...
</f:form>

$this->forward('otherAction', NULL, NULL, array('newModel0' => $newModel0);

Result: form #1 posts to the page inside page tree but uses landingpageAction() - which forwards to the proper action with proper arguments.

The reason for having pageUid in the initial form and not the forward is the lack of support for forwarding POST requests to different page Uids.

You might need to add @dontvalidate $newModel0 to landingpageAction() and otherAction() annotations - if you do not fill all required fields from the small landing page form.

Happy exting,
Claus Due

On Jun 8, 2011, at 1:14 PM, Sebastian Felix Schwarz wrote:

> Or is there a fluid-way to solve this ... something like:
> 
> <link action="step2" controller="formaction" page="123">reigster</link>
> 
> 
> 
> Am 08.06.2011 um 12:22 schrieb Sebastian Felix Schwarz:
> 
>> Hey List, 
>> 
>> i'm new to extbase and i have a problem.
>> 
>> i wrote an extension an there is also a FE plugin.
>> This Plugin is a MultiStep-Form ...
>> 
>> Now i want to implement the Plugin on 2 pages on my typo3 site...
>> 
>> first: landing-page 
>> and second: inside the page tree ...  root->navXY->register.html
>> 
>> now i want to redirect the first step on the landing page to the second step on the subpage ... 
>> i know i need a special Action conroller ... 
>> this is not my problem... i need something like this:
>> 
>> // LANDINGPAGE CONTROLLER
>> public function landingpageAction(Tx_Dpregistry_Domain_Model_MyModel0 $newModel0 = NULL) {
>> 		$this->view->assign('newModel0', $newModel0);
>> }
>> 
>> landingpageStep2Action is called by the submit button of the form in landingpageAction
>> 
>> public function landingpageStep2Action(Tx_Dpregistry_Domain_Model_MyModel0 $newModel0, Tx_Dpregistry_Domain_Model_MyModel1 $newModel1 = NULL){
>> 	
>> 	redirect to new site, new controller and pass through the filled object (newModel0) an the new model (newModel1)... 
>> 	
>> }
>> 
>> can somebody help me?? 
>> 
>> best sebastian
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
> 
> ....................................................................
> Sebastian Felix Schwarz
> Leiter Multimedia Produktion
> 
> takomat GbR | Neptunplatz 6b | 50823 Köln
> 
> E-mail: schwarz at takomat.com
> Online: http://www.takomat.com
> 
> Tel: +49 (0)221 - 75905-03
> Fax: +49 (0)221 - 75904-02
> ....................................................................
> 
> takomat GbR, Inh.: Johne, Schwarz, Buller u. Jakubowski
> Sparkasse Köln-Bonn: BLZ 370 501 98 – Kto. 190 144 7076, 
> Steuernummer: DE 258/513/199, Erfüllungsort und Gerichtsstand ist Köln. Sitz der Gesellschaft ist Köln.
> 
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> 
> _______________________________________________
> 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