Bug #41446
closedSorting of records different from tt_content - TCA Doku wrong!
0%
Description
Hello, I have to just "reopen" Issue #33161, as it was declined by Tolleiv Nietsch.
But in my opinion this is a problem of wrong information in the TCA reference (even current version 4.5.2).
We discovered the following:
On TYPO3 4.5.19 changing the ordering of content elements in an workspace different from live does very well, but reordering of records of any other table failed. Even backend layouts, which are also part of the core. This accors even when logged in as admin user.
Tolleiv told that there must be some misconfiguration, so we went something deeper into it and compared the table setup.
Indeed there was a difference:
In the control-section of the table the flag "versioningWS" has to be set to "2" to support moving of records. The according db fields must exist also exist, that's clear.
But now the important part: To work correctly, also the flag "versioning_followPages" has to be set to "1" or "true". But although moving of records doesn't work without this setting, there's no hint in its documentation. The current documentation says:
-----------------------------------------
(Only for other tables than “pages”)
If set, content from this table will get copied along when a new version of a page is created.
Tracking Originals
It is highly recommended to use the “origUid” feature for tables whose records are copied with pages that are versioned with content or subtree since this will enable the possibility of content comparison between current and future versions.
-----------------------------------------
Source: http://typo3.org/documentation/document-library/core-documentation/doc_core_tca/4.5.2/view/1/3/#id2431847
So, if you read this, you don't think that this is mandatory to use the full workspace feature. Is you are told to use "origUid" you think that's enough, especially if workspaces are configured to use ElementVersioningOnly like it is set in InstallTool.
So either there must be the documentation of this entry changed in the TCA reference or there are still some functions in the workspace code which belong to PageVersioning.