Bug #25021

Create page via drag'n'drop does not respect TCAdefaults in pagets

Added by Fabrizio Branca almost 9 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-02-13
Due date:
% Done:

100%

TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When creating a new page via drag'n'drop in the new pagetree the configured TCAdefaults settings from pagets won't be applied to the newly created page.

(issue imported from #M17565)

cron_setdefaultauthor_1.0.0.zip - The new extension for TYPO3 6.x (2.92 KB) Michael Lang, 2016-02-26 18:42


Related issues

Duplicated by TYPO3 Core - Bug #25107: Pagetree does not fill in default values as defined with user ts config when creating new pages Closed 2011-02-19
Duplicated by TYPO3 Core - Bug #27510: Pagetree not respecting TCAdefaults Closed 2011-06-17
Duplicated by TYPO3 Core - Bug #27841: 4.5.x pagetree not respecting TCAdefaults Closed 2011-07-05
Duplicated by TYPO3 Core - Bug #28278: New pages created through pagetree don't take pageTS-defaults into account Closed 2011-07-18
Duplicated by TYPO3 Core - Bug #29601: TCAdefaults.pages.hidden = 0 not working with new page tree Closed 2011-09-09
Copied to TYPO3 Core - Bug #88918: Create page via drag'n'drop does not respect TCAdefaults in pagets [from #25021] New 2019-08-05

Associated revisions

Revision bcd15ef7 (diff)
Added by Philipp Kitzberger almost 8 years ago

[BUGFIX] Creating new pages via drag'n'drop respects page TS

When creating a new page node via drag'n'drop shortcuts in pagetree,
the TCAdefaults.pages array from page TsConfig is now being respected.
This allows to preset certain field values for new pages.

Change-Id: I21c2f84951699469b00a745b62d2a95fb114809e
Fixes: #25021
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/9747
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Stefan Neufeind
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter

Revision debc1190 (diff)
Added by Philipp Kitzberger almost 8 years ago

[BUGFIX] Creating new pages via drag'n'drop respects page TS

When creating a new page node via drag'n'drop shortcuts in pagetree,
the TCAdefaults.pages array from page TsConfig is now being respected.
This allows to preset certain field values for new pages.

Change-Id: I21c2f84951699469b00a745b62d2a95fb114809e
Fixes: #25021
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/9887
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter

Revision a2b1f8c2 (diff)
Added by Philipp Kitzberger almost 8 years ago

[BUGFIX] Creating new pages via drag'n'drop respects page TS

When creating a new page node via drag'n'drop shortcuts in pagetree,
the TCAdefaults.pages array from page TsConfig is now being respected.
This allows to preset certain field values for new pages.

Change-Id: I21c2f84951699469b00a745b62d2a95fb114809e
Fixes: #25021
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/9889
Reviewed-by: Stefan Neufeind
Reviewed-by: Philipp Gampe
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer

Revision a5fc128b (diff)
Added by Philipp Kitzberger over 7 years ago

[BUGFIX] Creating new pages via drag'n'drop respects page TS

When creating a new page node via drag'n'drop shortcuts in pagetree,
the TCAdefaults.pages array from page TsConfig is now being respected.
This allows to preset certain field values for new pages.

Change-Id: I21c2f84951699469b00a745b62d2a95fb114809e
Fixes: #25021
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/9888
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers

History

#1 Updated by Tolleiv Nietsch over 8 years ago

  • Status changed from New to Accepted
  • Target version deleted (0)

#2 Updated by Stefan Neufeind over 8 years ago

Collecting some details from the other bugs here.

Example-defaults (from #25107):
Configure TCAdefaults for pages:
TCAdefaults {
pages {
author = Susanne Moog
author_email =
}
}

Creating a new page through pagetree goes through class.t3lib_tcemain.php::process_datamap().

PageTS could be accessed through:
$pageTS = t3lib_beFunc::getPagesTSconfig($pid);
if (isset($pageTS['TCAdefaults.'])) {
See for example typo3/sysext/wizard_crpages/class.tx_wizardcrpages_webfunc_2.php or t3lib/class.t3lib_transferdata.php

#3 Updated by most wanted over 8 years ago

Shouldn't this be a "must have"?

#4 Updated by Popy no-lastname-given almost 8 years ago

I found a few solutions to this problem, but the real questin behind this is "which class should have the role to determine field values" ?

For new the only which seems to do the job properly is t3lib_transferdata (method fetchRecord)

So one of the solution is to rewrite t3lib_tcemain->newFieldArray in order to use (or replace) t3lib_transferdata->fetchRecord and to be called after "pid" determination (as pagetsconfig depends of record's pid)

#5 Updated by Gerrit Code Review almost 8 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9747

#6 Updated by Gerrit Code Review almost 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9747

#7 Updated by Gerrit Code Review almost 8 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9747

#8 Updated by Gerrit Code Review almost 8 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9747

#9 Updated by Philipp Kitzberger almost 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#10 Updated by Gerrit Code Review almost 8 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/9887

#11 Updated by Gerrit Code Review almost 8 years ago

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/9888

#12 Updated by Gerrit Code Review almost 8 years ago

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/9889

#13 Updated by Gerrit Code Review almost 8 years ago

Patch set 2 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/9887

#14 Updated by Philipp Kitzberger almost 8 years ago

  • Status changed from Under Review to Resolved

#15 Updated by Bart Dubelaar over 7 years ago

It seems that TCAdefaults.pages in UserTS are still not respected. Just tested this in 4.7.2. Can anyone confirm this?

#16 Updated by Michael Lang almost 4 years ago

In 6.2.19 this bug is still not fixed. We are using the extension from Ernesto Baschny and the userinformation (username/email) do not fill the TCAfields.

#17 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

#18 Updated by Lukas Speck 6 months ago

  • Copied to Bug #88918: Create page via drag'n'drop does not respect TCAdefaults in pagets [from #25021] added

Also available in: Atom PDF