Giter Club home page Giter Club logo

Comments (4)

achimfritz avatar achimfritz commented on August 19, 2024

Hi @dariuskapitza , can you describe how this is reproduceable on a TYPO3/container Vaniila Instance?, i know nothing about any gridtocontainer migrations ...

from container.

Gernott avatar Gernott commented on August 19, 2024

We have exactly the same problem. We can reproduce it in one of our project.
I can send you a db-export of pages and tt_content.

from container.

Gernott avatar Gernott commented on August 19, 2024

container-sorting.tar.gz
Here is a ddev project with data to reproduce it fast:

  • extract container-sorting.tar.gz
  • ddev start
  • This automatically makes a composer install and imports the db
  • The BE-Login Data is in the READ.ME
  • Go to page module, page "Katastrophenschutz"
  • Drag&drop the last Content "Einmal Berge und zurück..." up before "Blackout"
  • After reloading the Backend: "Einmal Berge und zurück..." is at the bottom again :(

from container.

achimfritz avatar achimfritz commented on August 19, 2024

ok, got it, the problem here is that "global" sorting on this page is "wrong"

MariaDB [db]> select uid,tx_container_parent,CType,header,sorting,colPos,pid from tt_content order by sorting;
+------+---------------------+--------------+-----------------------------+---------+--------+-----+
| uid  | tx_container_parent | CType        | header                      | sorting | colPos | pid |
+------+---------------------+--------------+-----------------------------+---------+--------+-----+
| 2560 |                   0 | container-12 |                             |       4 |      0 | 255 |
| 2559 |                   0 | container-12 | Blackout                    |       8 |      0 | 255 |
| 2558 |                2559 | mask_image   |                             |      16 |     10 | 255 |
| 2556 |                2560 | mask_text    |                             |      64 |     10 | 255 |
| 2555 |                   0 | container-12 | Einmal Berge und zurück...  |      66 |      0 | 255 |
| 2554 |                2555 | mask_text    |                             |      75 |     10 | 255 |
+------+---------------------+--------------+-----------------------------+---------+--------+-----+

should be:

MariaDB [db]> select uid,tx_container_parent,CType,header,sorting,colPos,pid from tt_content order by sorting;
+------+---------------------+-----------+-----------------------------+---------+--------+-----+
| uid  | tx_container_parent | CType     | header                      | sorting | colPos | pid |
+------+---------------------+-----------+-----------------------------+---------+--------+-----+
| 2560 |                   0 | container-12  |                             |       4 |      0 |   2 |
| 2556 |                2560 | mask_text    |                             |      64 |    200 |   2 |
| 2559 |                   0 | container-12  | Blackout                    |      65 |      0 |   2 |
| 2558 |                2559 | mask_image    |                             |     321 |    200 |   2 |
| 2555 |                   0 | container-12  | Einmal Berge und zurück...  |     578 |      0 |   2 |
| 2554 |                2555 | mask_text    |                             |     587 |    200 |   2 |
+------+---------------------+-----------+-----------------------------+---------+--------+-----+

result can be achieved by

        $cmdmap = [
            'tt_content' => [
                2559 => [
                    'move' => -2560
                ]
            ]
        ];

container sorting command only fixes sorting of container children.
i will have an other look on it.

from container.

Related Issues (20)

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.