Feature #15440
closedDrag and Drop functionality for pages and folders treeviews
0%
Description
Here is a patch that implements the ss_dragdrop extension into the core. It is checked against the latest CVS version at the time of this writing.
(issue imported from #M2301)
Files
Updated by Stephane Schitter almost 19 years ago
I just added here the icons associated with the code. They need to be placed into the gfx/ directory. They could be redrawn at some point as well.
Updated by Stephane Schitter almost 19 years ago
Several notes about the drag/drop functionality implemented here:
- Drag'n'drop will be disabled if the Context Menus (CMlayers) are disabled by the user. Reason for this is that functions such as GLV_x used by Drag'n'Drop javascript are unavailable in non-context menu mode. To allow Drag'n'Drop to work even in non-context menu mode, the code for determining GLV_x and other variables in Javascripts needs to be generated on the page.
- Headers of the various files need to be regerenated through extdeveval, as the new functions introduced would otherwise not appear in that Doc header.
- The move/copy functionality does not ask for confirmation to the users. This could be implemented if required, (in a similar way to FILE_delete($path)) but it is currently not felt necessary.
- The Drag'n'Drop menu does not check for disabled items in the context menu.
- A few new locallang items are added as part of the patch. These will need translation. I have already translation into a few languages, but I am not sure how to include these in the various csh_xx extensions.
- Icons may need redesign - I am not the best person to design icons, so I provided the old-style looking icons. They should be skinnable through the same API as the standard Typo3 skinning API. This needs to be tested though !
- the Drag'n'Drop code will not work if a folder name contains a double quote character : " However the existing context-menu code will fail for these folders as well, so should not be a big issue at this time. These incorrectly named folders cannot be created through the fileadmin. If they exsit, they have either been created through FTP or through a shell command.
Updated by Sebastian Kurfuerst almost 19 years ago
Hi,
this is committed to CVS.
Greets, Sebastian
PS: Folder move functionality is implemented, too (this didn't work in your patch)