[TYPO3-dev] Add/Remove/Change item in TCEFORM depending on ctype
Peter Russ
peter.russ at 4many.net
Thu Mar 15 16:49:40 CET 2007
May be that there is a simple solution, but at the moment I can't figure
out:
Depending on ctype I want to add/remove items.
Example:
if ctype=fdfx_2cols_pi1 tsconfig_page.txt reads like:
TCEFORM.tt_content {
tx_fdfx2cols_height.disabled = 1
tx_fdfx2cols_type {
altLabels {
0 = LLL:EXT:fdfx_yaml/locallang_db.xml:tt_content.tx_fdfxyaml_type.I.0
1 = LLL:EXT:fdfx_yaml/locallang_db.xml:tt_content.tx_fdfxyaml_type.I.1
2 = LLL:EXT:fdfx_yaml/locallang_db.xml:tt_content.tx_fdfxyaml_type.I.2
}
addItems {
3 = LLL:EXT:fdfx_yaml/locallang_db.xml:tt_content.tx_fdfxyaml_type.I.3
4 = LLL:EXT:fdfx_yaml/locallang_db.xml:tt_content.tx_fdfxyaml_type.I.4
5 = LLL:EXT:fdfx_yaml/locallang_db.xml:tt_content.tx_fdfxyaml_type.I.5
6 = LLL:EXT:fdfx_yaml/locallang_db.xml:tt_content.tx_fdfxyaml_type.I.6
}
}
if ctype=fdfx_3cols_pi1 tsconfig_page.txt should look like:
TCEFORM.tt_content {
tx_fdfx2cols_height.disabled = 1
tx_fdfx2cols_type {
altLabels {
0 = LLL:EXT:fdfx_yaml/locallang_db.xml:tt_content.tx_fdfxyaml_type.I.9
}
}
Any help?
Thanks.
Regs. Peter.
--
Fiat lux!
Docendo discimus.
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ
More information about the TYPO3-dev
mailing list