[TYPO3-english] conditional split only if dam fields not used for caption
Bjoern Pedersen
bjoern.pedersen at frm2.tum.de
Wed Apr 21 17:16:32 CEST 2010
The default TypoScript from dam_tt_content clears the caption split mode.
captiondam {
1 = TEXT
1 {
field >
data=field:txdam_caption//field:txdam_descriptio//field:imagecaption
required = 1
parseFunc =< lib.parseFunc
br = 1
fontTag = <p class="csc-caption">|</p>
wrapAlign.field = imagecaption_position
split >
}
}
Is it possible to modifiy it in a way that the clearing only happens if
the dam fields are empty and the caption from the field imagecaption is
used?
caption_csc {
....
split.token.char = 10
split.token.if.isPositive = {$styles.content.imgtext.imageTextSplit} +
{$styles.content.imgtext.captionSplit}
split.returnKey.data = register : IMAGE_NUM_CURRENT
}
Björn
More information about the TYPO3-english
mailing list