[TYPO3-mvc] Re: Backend Plugin - Generate table form
Alex Nostadt
ano at tro.net
Thu Feb 26 20:47:45 CET 2015
I finally got it!
The returnUrl had to be urlencoded and the further get params assigned to alt_doc.php appended using &
This is my code:
-------------------------------
/**
* action list
*
* @return void
*/
public function listAction() {
$sReturnUrl = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl("tools_DummyTroextlist");
echo "<a href='".$sReturnUrl."'>Open this backend page.</a>";
echo "<hr />";
var_dump( urlencode($sReturnUrl) );
$sAltDocPhp = "alt_doc.php?returnUrl=".urlencode($sReturnUrl."&id=2&imagemode=1")."&edit[tx_dummy_domain_model_product][2]=new";
echo "<a href=\"\" onclick=\"window.location.href='".$sAltDocPhp."'; return false;\"><span class=\"t3-icon t3-icon-tcarecords t3-icon-tcarecords-tx_dummy_domain_model_product t3-icon-tx_dummy_domain_model_product-default\"> </span>Create Product</a>";
}
-------------------------------
More information about the TYPO3-project-typo3v4mvc
mailing list