Skip to content

Conversation

@achimfritz
Copy link
Contributor

get rid of using combined colPos and tx_container_parent during drag and drop in BE PageModule

we introduce a data-tx-container-parent data-attribute to the container-column div-container in the Grid/Column Partial and use patched JavaScript Files from core layout-module to send that attribute to the TYPO3 DataHandler Command

Before we sent a combined colPos-tx_container_parent parameter as colPos and seperate the parameter in the DataHandler Hook

the constant ContainerGridColumn::CONTAINER_COL_POS_DELIMITER_V12 is removed

if you use own Grid/Column Partial you have to add the data-tx-container-parent to the div-container in your Partial

Fixes: #456
Fixes: #464
Relates to: #443

@achimfritz achimfritz requested a review from bmack June 2, 2024 16:56
get rid of using combined colPos and tx_container_parent
during drag and drop in BE PageModule

regards TYPO3 >= 12 only

we introduce a data-tx-container-parent data-attribute to the
container-column div-container in the Grid/Column Partial
and use patched JavaScript Files from core layout-module
to send that attribute to the TYPO3 DataHandler Command

Before we sent a combined colPos-tx_container_parent parameter
as colPos and seperate the parameter in the DataHandler Hook

the constant ContainerGridColumn::CONTAINER_COL_POS_DELIMITER_V12
is removed

if you use own Grid/Column Partial you have to add the
data-tx-container-parent to the div-container in your Partial

Fixes: #456
Fixes: #464
Relates to: #443
@achimfritz achimfritz merged commit 3606463 into master Jun 13, 2024
@achimfritz achimfritz deleted the task/be-js branch June 13, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TYPO3 v12 Container Drag & Drop results in unused elements in BE Container colPos lost due to JavaScript rounding

4 participants