[TYPO3-dev] moving records in offline workspaces
"Peter Kühn [wmdb]"
peter.kuehn at wmdb.de
Sat Mar 4 16:43:41 CET 2006
Hi yall,
as some of you might have noticed theres currently (talkin bout
4.0beta3) no way to move records in any non-live workspace.
Trying to simply change the order of content-elements in web>page-module
gives the error-msg
Move attempt failed due to workspace restrictions:
Could not remove record from table "tt_content" from its page "xxx"
Could not insert record from table "tt_content" in destination PID "xxx"
which cant be correct: there are no restrictions for content-elements.
diggin deeper into this im thinkin about the needed *concept* for moving
records in offline workspaces. i see different scenarios that
t3lib_tcemain::moveRecords() should take care of.
- Changing the order of two elements on the same pid
seems pretty clear:
If two records on the same pid shall change their order both records
have to be an offline version before.
If the workspace is not configured to "Disable auto-versioning when
editing" and one or both records dont have a version in the current
workspace, tcemain should create the needed versions otherwise spit an
error.
Changing the order of the offline-versions should result in the same
change online after publishing.
so far - so good.
but what to do if a record is moved to another pid as its current?
cant help it, but the only idea i have to create a record with
t3ver_state=2 on the current pid and a version of the record (and
versions of all affected records, see above) in the right place at the
target-pid feels like loads of overhead both in database and work and
understanding for the editor that will have to publish on two pages to
simply move one record.
is anybody out there with me?
did anyone allready work on this?
whats the plan?
greetinx to those workin during weekends ;)
pekue
More information about the TYPO3-dev
mailing list