Bug #25021
closedCreate page via drag'n'drop does not respect TCAdefaults in pagets
100%
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
Updated by Tolleiv Nietsch over 13 years ago
- Status changed from New to Accepted
- Target version deleted (
0)
Updated by Stefan Neufeind over 13 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 = mail@example.com
}
}
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
Updated by Popy no-lastname-given almost 13 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)
Updated by Gerrit Code Review over 12 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
Updated by Gerrit Code Review over 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9747
Updated by Gerrit Code Review over 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9747
Updated by Gerrit Code Review over 12 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9747
Updated by Anonymous over 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset bcd15ef7931467da6fafd02f54136cff9f662007.
Updated by Gerrit Code Review over 12 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
Updated by Gerrit Code Review over 12 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
Updated by Gerrit Code Review over 12 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
Updated by Gerrit Code Review over 12 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
Updated by Anonymous over 12 years ago
- Status changed from Under Review to Resolved
Applied in changeset debc11902e42294d954ddf497706b27a2976b9e9.
Updated by Bart Dubelaar over 12 years ago
It seems that TCAdefaults.pages in UserTS are still not respected. Just tested this in 4.7.2. Can anyone confirm this?
Updated by Michael Lang over 8 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.
Updated by Lukas Speck over 5 years ago
- Copied to Bug #88918: Create page via drag'n'drop does not respect TCAdefaults in pagets [from #25021] added