Bug #23864
closedTCEFORM.tt_content.CType.keepItems = textpic does not work.
100%
Description
TCEFORM.tt_content.CType.keepItems = textpic
Does not work, there is no CType to choose in the BE
This should have the same effect like:
TCEFORM.tt_content.CType.removeItems = header, text, image, bullets, table, uploads, multimedia, mailform, search, login, splash, menu, shortcut, list, script, div, html
(not removing textpic)
(issue imported from #M16160)
Files
Updated by taywa gmbh about 14 years ago
Sorry, I mean:
This SHOULT have the same effect like:
TCEFORM.tt_content.CType.removeItems = header, text, image, bullets, table, uploads, multimedia, mailform, search, login, splash, menu, shortcut, list, script, div, html
Updated by Jo Hasenau about 14 years ago
Where did you find a property named "keepItems"?
AFAICS there is none, so of course this doesn't work.
Or did you want to make it a feature request?
Then it can't be done for 4.4 though.
Updated by Jo Hasenau about 14 years ago
Sorry - just found out that I was checking the wrong version of the TSconfig manual.
Tested it and for me it works as expected: The selectbox of the tt_content editing form contains "textpic" only.
Updated by taywa gmbh about 14 years ago
In the wizard textpic doesen't show up, in the selectbox it shows up. Maybe its a Problem with the wizard?
Look at the pictures
Updated by Joschi Kuphal about 12 years ago
- Target version deleted (
0)
The problem still exists today (TYPO3 4.7.4) and definitely is a problem with the (classical) "New content wizard" only (the TemplaVoila wizard is not affected though). I could track it down to the following reason:
For each registered wizard item (mod.wizards.newContentElement.wizardItems.xxx.elements.xxx) the wizard checks for each given tt_content default value (tt_content_defValues.xxx) if the value part is present in the keepItems list. Now imagine the wizard definition of the "textpic" item (PHP representation):
array( [icon] => gfx/c_wiz/text_image_right.gif [title] => Text und Bilder [description] => Eine beliebige Anzahl von Bildern mit umfließendem Text. [tt_content_defValues] => Array ( [CType] => textpic [imageorient] => 17 ) )
Given the above, the wizard does not only check if the (CType value) "textpic" is contained in the keepItems list, but also looks for the number "17" (default value for the "imageorient" property).
The short term solution is to simply add "17" to the keepItems list:
TCEFORM.tt_content.CType.keepItems = textpic,17
The wizard will then show the "textpic" element as expected. Similar would have to be done for any other default value defined for any wizard item you want to be shown.
Of course this is not a valid long term solution and could also lead to unexpected side effects. At long sight the wizard has to be patched to only check for the CType default value, which would be pretty easy and straightforward.
Updated by Marco Huber almost 12 years ago
I can reproduce this bug in a TYPO3 4.5 installation.
Updated by Ludwig Rafelsberger almost 11 years ago
The problem still persists in the current master (6.2-dev)
As stated before, the validity checks are (correctly) executed with each key in tt_content_defValues, but (wrongly) always against the allowed values of CType.
Will come up with a patch soon.
Updated by Gerrit Code Review almost 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27588
Updated by Gerrit Code Review almost 11 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27588
Updated by Gerrit Code Review over 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27588
Updated by Gerrit Code Review over 10 years ago
Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28307
Updated by Gerrit Code Review over 10 years ago
Patch set 2 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28307
Updated by Ludwig Rafelsberger over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d405041c4286030045ecf1b778c643f47414e5c2.