[TYPO3-mvc] Backend Plugin - Generate table form
Jonas Eberle
jonas.eberle at d-mind.de
Fri Feb 27 12:08:22 CET 2015
Hi Alex,
do you really need the link in the controller already? If you are
generating in Fluid with the f:link.action-Viewhelper, correct
Backend-Links get generated automatically without much hassle (+
upgrade-compatible).
If I need to generate links in the controller, I always just use the
UriBuilder (sorry, have no example at hand).
Regards,
Jonas
Am 26.02.2015 um 20:47 schrieb Alex Nostadt:
> 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>";
>
> }
> -------------------------------
>
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
--
Neu: welcome.region-stuttgart.de
Neu: ladenbackofen.de
Neu: beltamor.de
--------------------------------
d-mind bei Facebook:
http://www.facebook.com/werbeagentur.internetagentur.stuttgart
--------------------------------
d-mind GmbH
Mörikestraße 69
70199 Stuttgart
Tel.: +49 711 2804811-0 (Durchwahl: -18)
Fax: +49 711 280481-3
Internet: www.d-mind.de
Geschäftsführer:
Jens Fuchs
Michael Weiß
Jens Strobel
Sitz Stuttgart
Amtsgericht Stuttgart
HRB 751842
More information about the TYPO3-project-typo3v4mvc
mailing list