Giter Club home page Giter Club logo

listview_dnd's Introduction

Enables drag&drop for records in TYPO3 backend list module (list view).

Provides the following functionalities :

  • Automatically hides translated records if Localization view is disabled
  • Disable drag&drop based on records type and TYPO3 standard move conditions
  • Use of standard TYPO3 function for move action

Home page of the project: https://github.com/morinfa/listview_dnd

Stable version: http://typo3.org/extensions/repository/view/listview_dnd

  1. Install and activate extension listview_dnd
  2. Set the tables authorized for drag&drop

By default, drag&drop can't be used on any records. You have to manually set the records tables in the page TSConfig to enable them to be moved with drag&drop:

tx_listview_dnd.tables {
   10 = tx_myext_domain_model_myrecord
   20 = ...
}

Moving records in TYPO3 is bugged with content records and nested records. This extension doesn't try to solve/avoid/work around those bugs.

You should not activate drag&drop for tables like tt_content, sys_category, or any content/nested records.

While this extension tries to be as less intrusive as possible, it can be incompatible with other list-view customizations.

There are bugs in TYPO3 move actions for content records (e.g. tt_content), and also for nested records (e.g. categories).

Since those standard move actions are used in this extension, drag&drop can mess up your data for those records.

It is not recommended to activate drag&drop for content or nested records.

It makes no sense to drag&drop records with translated child records taking lot of screen space.

That's why this extension automatically hides translated records if Localization view is disabled in list view.

You still can see translated records by simply enabling the Localization view. But in that case drag&drop is disabled.

Drag&drop is automatically disabled according to the default TYPO3 behavior when moving records:

  • Records are displayed with sorting
  • You don't have authorization to edit the records
  • Search records is set with 1/2/3/4 level down

The up/down arrows are automatically hidden because they are useless when drag&drop is active.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.