[TYPO3-german] Re: Typo3 6.1 formular POST typoscript GP:field

Sascha lsascha at gmail.com
Thu Jan 16 16:50:41 CET 2014


Hallo,

habe mir einen workaround gebastelt.

Ist zwar nicht schön scheint aber zu funktionieren.

1. habe ich mir den RedirectPostProcessor der vermutlich in Typo3 6.2 einzug halten wird genommen:
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/form/Classes/PostProcess/RedirectPostProcessor.php

2.
Script leicht angepasst und bei setDestination() die Parameter per GET mitgegeben:
[code]protected function setDestination() {

		$additionalUrlParams = urldecode( http_build_query( array( 'tx_form' => \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('tx_form') ) ) );

		$this->destination = '';
		if ($this->typoScript['destination']) {
			$urlConf = array('parameter' => $this->typoScript['destination'], 'additionalParams' => '&'.$additionalUrlParams );
			$this->destination = $GLOBALS['TSFE']->cObj->typoLink_URL($urlConf);
		}
	}
[/code]

3. in der eigentlichen Formular Konfiguration:
[code]
method = get
postProcessor {
	1 = redirect
	1 {
		destination = #ZIEL-PID# (hier die ZIEL PID)
	}
}
10 = TEXTBLOCK
10 {
	content = <input type="hidden" name="id" value="#PID#" /><!-- hier PID der seite mit dem formular -->
}
[/code]

Inwiefern das mit url_rewrite noch funktionieren wird weiß ich nicht. aber erst einmal klappt es als Workaround.



More information about the TYPO3-german mailing list