Bug #41434
closed
userTSconfig: TCAdefaults.tt_content.imagecols = 1 does not always work
Added by Stefan Neufeind over 11 years ago.
Updated over 6 years ago.
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.
Did you try mod.wizards?
mod.wizards.newContentElement.wizardItems.common.elements.textpic.tt_content_defValues.imagecols = 1
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".
- Category set to Documentation
- 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.
- Status changed from Accepted to Under Review
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).
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!
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF