{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/7354","labels_url":"https://api.github.com/repos/contao/core/issues/7354/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/7354/comments","events_url":"https://api.github.com/repos/contao/core/issues/7354/events","html_url":"https://github.com/contao/core/issues/7354","id":44974322,"number":7354,"title":"Manuelle Sortierung / Cut-Button funktioniert nicht überall (paste_button_callback)","user":{"login":"Total-Reality","id":5235894,"avatar_url":"https://avatars.githubusercontent.com/u/5235894?v=3","gravatar_id":"","url":"https://api.github.com/users/Total-Reality","html_url":"https://github.com/Total-Reality","followers_url":"https://api.github.com/users/Total-Reality/followers","following_url":"https://api.github.com/users/Total-Reality/following{/other_user}","gists_url":"https://api.github.com/users/Total-Reality/gists{/gist_id}","starred_url":"https://api.github.com/users/Total-Reality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Total-Reality/subscriptions","organizations_url":"https://api.github.com/users/Total-Reality/orgs","repos_url":"https://api.github.com/users/Total-Reality/repos","events_url":"https://api.github.com/users/Total-Reality/events{/privacy}","received_events_url":"https://api.github.com/users/Total-Reality/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-10-06T11:44:57Z","updated_at":"2015-08-07T16:31:34Z","closed_at":"2015-08-06T12:06:02Z","body":"Hallo,\r\n\r\nIch habe wie im tl_article festgelegt, dass die Elemente \"ausgeschnitten\" werden können, um ihre Sortierung ändern zu können.\r\n\r\nEs funktioniert allerdings nur im Mode 5. Ich verwende allerdings den Mode 2 wie die Mitgliederlisten z.B.\r\n\r\nDort habe ich in der DCA testweise ein neues Feld \"sorting\" und den cut-Button hinzugefügt\r\n\r\nPHP-Code:\r\n      'cut' => array \r\n      ( \r\n        'label'               => &$GLOBALS['TL_LANG']['tl_member']['cut'], \r\n        'href'                => 'act=paste&amp;mode=cut', \r\n        'icon'                => 'cut.gif', \r\n        'attributes'          => 'onclick=\"Backend.getScrollOffset()\"' \r\n      ),  \r\n\r\nAußerdem kommt der paste_button_callback zum Einsatz.\r\n\r\nPHP-Code:\r\n'paste_button_callback'   => array('tl_member_ext', 'pasteMember')  \r\nIn der Funktion steht zum Test ein echo 'test'; das mir in Contao nach dem Kopieren oder Einfügen eines Elementes aber fälschlicherweise nicht angezeigt wird (mode 2). In mode 5 wird es allerdings angezeigt.\r\nDas lässt mich zu dem Schluss kommen, dass im mode 5 scheinbar der paste_button_callback ignoriert wird?!\r\n\r\nKann man das irgendwie umgehen oder so erweitern, dass es funktioniert?"},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/128757609","html_url":"https://github.com/contao/core/issues/7354#issuecomment-128757609","issue_url":"https://api.github.com/repos/contao/core/issues/7354","id":128757609,"user":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T16:31:34Z","updated_at":"2015-08-07T16:31:34Z","body":"Und am besten dann einen Pull-Request stellen damit alle davon profitieren können :-)"}}