Project

General

Profile

Actions

Task #55426

closed

Cleanup listframe cut/copy handling

Added by Bernhard Kraft about 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Code Cleanup
Target version:
-
Start date:
2014-01-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
hard
Sprint Focus:
Remote Sprint

Description

The patch which enabled pasting of content elements into empty columns [1] required a fix for reloading the list frame after cut/copy a tt_content element via its clickmenu [2].

The patch [2] introduced a few lines in clickmenu.js which use a relict feature: Ancient times ago the clickmenu was not implemented by AJAX but by reloading the top-frame with some special parameters and Javascript therein generated the clickmenu. Then it was possible to add javascript for reloading the list frame after an element has been cut/copied to the clipboard.

This ancient feature is used again after fix [2] because the clickmenu makes a call to itself for cut/copy.

Eventual solution: Instead of making a call to alt_clickmenu.php for CB cut/copy actions make a call to tce_db.php/tce_file.php. Don't know if this works but alt_clickmenu shouldn't be misused for doing a cut/copy of an element into the clipboard. If this is solved the temporary solution in clickmenu.js could get removed again.

[1] https://review.typo3.org/#/c/25532/
[2] https://review.typo3.org/#/c/25544/


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #15080: there is no way to paste content element to page where there is no content at all yet (in page view)Closed2005-10-17

Actions
Related to TYPO3 Core - Bug #15958: copy/paste in Clipbord in List moduleClosed2006-03-31

Actions
Actions #1

Updated by Bernhard Kraft about 10 years ago

So this is no functional issue but rather a coding style issue.

I just checked tce_db.php and it seems it is possible to resolve this issue by fixing the clickmenu links for cut/copy. They should get generated like the cut/copy links in the list module!!

Actions #2

Updated by Mathias Schreiber over 9 years ago

  • Target version set to 7.4 (Backend)
Actions #3

Updated by Bernhard Kraft over 9 years ago

It should get noted, that from the very beginning it was not possible to paste content elements on the clipboard into an empty column. But there were "paste after this element" icons. Somewhen those icons got removed for design reasons - the original bug still persisted and a "paste" operation could only get accomplished using the clickmenu.

I don't know exactly if the transition to AJAX clickmenus happened before or after the removal of paste icons.

The only reason for reloading the page module upon doing a copy/cut operation is to show the paste icons at the top of every column.

I guess the required solution here would be to generate those paste icons anytime but do not show them (css display none). When an element gets copied/pasted to the clipboard they should get enabled but the paste message ~"Do you want to paste element XY into column Z" would have to get carried along with the AJAX reply of the copy/cut operation.

Actions #4

Updated by Anja Leichsenring about 9 years ago

  • Sprint Focus set to On Location Sprint
Actions #5

Updated by Benni Mack almost 9 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Benni Mack

Hey Bernhard, can you see if this still applies? I did some work in this area recently.

Actions #6

Updated by Susanne Moog almost 9 years ago

  • Sprint Focus changed from On Location Sprint to Remote Sprint
Actions #7

Updated by Susanne Moog over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #8

Updated by Benni Mack over 8 years ago

  • Target version deleted (7.5)
Actions #9

Updated by Benni Mack over 8 years ago

  • Status changed from Needs Feedback to Closed

Should be fixed by now. Closing now due to no response. If you still think this applies, please let me know via email or slack.

Actions

Also available in: Atom PDF