[TYPO3-dev] pageTSconfig: bug when using TCEFORM.tt_content.CType.keepItems & tt_content_defValues?
Roland
most.wanted at gmx.at
Thu Jan 10 09:34:08 CET 2013
hi everybody,
can anybody reproduce this? i encountered this problem in a TYPO3 4.7.7
project (at the moment the most current 4.x TYPO3 - did/can not test it
with TYPO3 6.0.0 at the moment).
--- pageTSconfig ---
### only mycontentelement should be selectable
TCEFORM.tt_content.CType.keepItems = mycontentelement
### add mycontentelment to the newContentElement wizard
mod.wizards.newContentElement {
wizardItems.common {
elements {
mycontentelement {
title = My Content Element
tt_content_defValues {
CType = mycontentelement
colPos = 1
}
}
}
show := addToList(mycontentelement)
}
}
--- /pageTSconfig ---
the following only occurs, when "TCEFORM.tt_content.CType.keepItems" is
used. otherwise everything works like a charm:
if I set tt_content_defValues to both "CType" and "colPos" (or any other
tt_content field like e.g. bodytext, etc.) the content element
"mycontentelement" will no longer be displayed by the newContentElement
wizard.
the content element "mycontentelement" will only be displayed in the
newContentElement wizard when only tt_content_defValues-"CType" is set,
although tt_content_defValues should (according to the documentation)
should be an array.
if only "colPos" is set via tt_content_defValues "mycontentelement" is
also NOT displayed in the newContentElement wizard.
if someone can reproduce it i would open a ticket on forge.typo3.org
kind regards
roland
More information about the TYPO3-dev
mailing list