Manchmal möchte man die lästigen stdWraps entfernen, die CSS-Styled-Content um Bilder legt. Mit folgendem TypoScript werden die Wraps in Content-Spalte 10 entfernt:
temp.image < tt_content.image
tt_content.image >
tt_content.image = CASE
tt_content.image {
key.field = colPos
default < temp.image
10 < temp.image
10.20.imageStdWrap.dataWrap >
10.20.imageStdWrapNoWidth.dataWrap >
10.20.imageColumnStdWrap.dataWrap >
# Redefine the layout switch with only one default case
10.20.layout >
10.20.layout = CASE
10.20.layout.key.field = imageorient
10.20.layout.default = TEXT
10.20.layout.default.value = ###IMAGES### ###TEXT###
# Remove the wrap around the image subtext
tt_content.textpic.20.text.wrap = |
# Define a new rendering method without wraps
10.20.rendering.noWraps {
imageRowStdWrap.dataWrap = |
noRowsStdWrap.wrap =
oneImageStdWrap.dataWrap = |
imgTagStdWrap.wrap = |
editIconsStdWrap.wrap = |
caption.wrap = |
}
# Set this as active rendering method
10.20.renderMethod = noWraps
}