[TYPO3-dev] [BE] popup to other record (edit) close window on save

Steffen Kamper steffen at sk-typo3.de
Fri Jan 25 22:48:31 CET 2008


Hi,

"Dmitry Dulepov [typo3]" <dmitry at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1201272234.31928.typo3-dev at lists.netfielders.de...
> Hello!
>
> Gijs Epping wrote:
>> I am creating a BE plugin for a customer but i need to add a popup to 
>> edit a other record.
>>
>> this is the TCA how i call the script with the popup and some sql 
>> statements:
>>
>> "information" => Array (       "exclude" => 1,       "label" => 
>> "Informatie",       "config" => Array (
>>         "type" => "user",   "userFunc" => 
>> "tx_rpho_user->user_TCAform_test",   ),
>> ),
>
> If you do it to edit other record, you probably can use type=group or 
> type=select. Then you can add a wizard to open record for editing. 
> Examples are in the "TYPO3 Core API" document.
>
>> The popup i am using now is just a simpel javascript popup:
>>
>> <a href="#" 
>> onClick="window.open(\'/typo3/alt_doc.php?&amp;edit[tx_efrpho_concertinformatie]['.$row['uid'].']=edit\',\'newwindow\',\'width=550,height=450,scrollbars=yes,toolbar=yes,location=yes\'); 
>> return false">
>> <img src="/typo3/sysext/t3skin/icons/gfx/edit2.gif" border="0">
>> </a>
>>
>> But when the user saves, the window (offcourse) will no close. is there a 
>> way in typo world that i can change the user actions on the opened 
>> window?
>
> <rant>For "typo"-related questions you should ask in the "typo" support. 
> Here is "typo" page: http://typosphere.org/. This list is about TYPO3, not 
> "typo".</rant>
>
> What do you mean by "user actions on the opened window"?
>
>> may be i can add some javascript:
>>
>> window.opener.reload
>> window.close()
>
> Hm, may be you can ;) Why don't you try?
>
> -- 
> Dmitry Dulepov
> TYPO3 core team
> Web: http://typo3bloke.net/
> Skype: callto:liels_bugs
> "Nothing is impossible. There are only limits to our knowledge"

Bernhard Kraft has written an extension that extends list view and allows 
edit in popup window, i think that is what you are searching for.

vg  Steffen 






More information about the TYPO3-dev mailing list