Bug #41434
closeduserTSconfig: TCAdefaults.tt_content.imagecols = 1 does not always work
100%
Description
As described in #16806 by Sacha Vorbeck (over 4 years ago!):
default-value for imagecols [...] "via User TSconfig is only taken into account when you create a new content element text and then switch it to image. If you create the content element via the new content element wizard and select an image directly, the value will always be 2."
Can reproduce this with 4.5.19. So unfortunately it's not yet solved.
Updated by Georg Schönweger about 12 years ago
Did you try mod.wizards?
mod.wizards.newContentElement.wizardItems.common.elements.textpic.tt_content_defValues.imagecols = 1
Updated by Stefan Neufeind about 12 years ago
Yes, that way it works. To be exact:
mod.wizards.newContentElement.wizardItems.common.elements.image.tt_content_defValues.imagecols=1
Jigal just brought that up. The TCAdefault-value is overridden by the wizard-default here (which is 2). He's already discussing internally how to proceed about this (kind of) "inconsistency".
Updated by Jigal van Hemert about 12 years ago
- Category set to Documentation
The setting
mod.wizards.newContentElement.wizardItems.common.elements.image.tt_content_defValues.imagecols
overrides the settings from TCAdefaults because they are sent by the New Content Element Wizard to the new content element form through the defVals GET variable.
See http://typo3.org/documentation/document-library/core-documentation/doc_core_tsconfig/4.7.0/view/1/3/#id699154 for the priorities regarding the default values for fields.
The TSconfig documentation should contain a note about this setting which influences the defVals.
Updated by Jigal van Hemert about 12 years ago
- Category changed from Documentation to Miscellaneous
- Status changed from New to Accepted
- Assignee set to Jigal van Hemert
- Target version set to 4.5.20
- Complexity set to easy
Further testing showed that a better place for the wizard settings which are not different for various CE types is actually the TCA defaults in the default user settings.
Updated by Gerrit Code Review about 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/15118
Updated by Jigal van Hemert about 12 years ago
How to test:
- TCAdefaults.tt_content.imagecols = 5 in user TSconfig
- make new CE with wizard of type "text"
- switch to type "image"
- on the Appearance tab the number of columns is 5
- make a new CE with wizard of type "image"
- on the Appearance tab the number of columns is 2
The 2 is set by mod.wizards.newContentElement.wizardItems.common.elements.image.tt_content_defValues.imagecols = 2 in pageTSconfig. This is used if you directly select the "image" CE type in the wizard. If you first select the "text" type imagecols is not set via defVals and the TCAdefaults setting is used.
Moving the imagecols=2 to the TCAdefaults for the default user TSconfig setting solves the problem without side effects (custom settings not working).
Updated by Wladimir Hofmann almost 12 years ago
same story in TYPO3 4.7.5
But as I use templavoila (v. 1.7.0), I tried in pageTSconfig:
templavoila.wizards.newContentElement.wizardItems.common.elements.textpic.tt_content_defValues.imagecols=1
templavoila.wizards.newContentElement.wizardItems.common.elements.image.tt_content_defValues.imagecols=1
and it works perfect!
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/15118
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/15118
Updated by Gerrit Code Review over 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/15118
Updated by Gerrit Code Review over 11 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/15118
Updated by Gerrit Code Review over 11 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/15118
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/21980
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/21981
Updated by Jigal van Hemert over 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8390aa752ed8d954f4d7ff62a191fe261246922d.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed