Bug #25021

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

Added by Fabrizio Branca almost 11 years ago. Updated about 3 years ago.

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

100%

Estimated time:
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)


Files

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

Related issues

Has duplicate TYPO3 Core - Bug #25107: Pagetree does not fill in default values as defined with user ts config when creating new pagesClosed2011-02-19

Actions
Has duplicate TYPO3 Core - Bug #27510: Pagetree not respecting TCAdefaultsClosed2011-06-17

Actions
Has duplicate TYPO3 Core - Bug #27841: 4.5.x pagetree not respecting TCAdefaultsClosed2011-07-05

Actions
Has duplicate TYPO3 Core - Bug #28278: New pages created through pagetree don't take pageTS-defaults into accountClosed2011-07-18

Actions
Has duplicate TYPO3 Core - Bug #29601: TCAdefaults.pages.hidden = 0 not working with new page treeClosedChris topher2011-09-09

Actions
Copied to TYPO3 Core - Bug #88918: Create page via drag'n'drop does not respect TCAdefaults in pagets [from #25021]Closed2019-08-05

Actions
#1

Updated by Tolleiv Nietsch over 10 years ago

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

Updated by Stefan Neufeind over 10 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 about 10 years ago

Shouldn't this be a "must have"?

#4

Updated by Popy no-lastname-given almost 10 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 over 9 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 over 9 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 over 9 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 over 9 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 over 9 years ago

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

Updated by Gerrit Code Review over 9 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 over 9 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 over 9 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 over 9 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 over 9 years ago

  • Status changed from Under Review to Resolved
#15

Updated by Bart Dubelaar over 9 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 6 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 about 3 years ago

  • Status changed from Resolved to Closed
#18

Updated by Lukas Speck over 2 years 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