Hallo zusammen!
Um ein IMAGE oder IMGTEXT ohne die Überschrift darzustellen verwende ich folgendes TS:
-------------------------------------------------------------------------------------------------------------------
# *****************
# CType: image
# *****************
# (also used for rendering 'textpic' type):
tt_content.image = COA
tt_content.image.10 = < lib.stdheader
tt_content.image.20 = IMGTEXT
tt_content.image.20 {
imgList.field = image
textPos.field = imageorient
imgPath = uploads/pics/
imgObjNum = 1
1 {
file.import.current = 1
file.width.field = imagewidth
params = align="top"
imageLinkWrap = 1
imageLinkWrap {
bodyTag =
wrap = <a href="javascript:close();"> | </a>
width = {$styles.content.imgtext.linkWrap.width}
height = {$styles.content.imgtext.linkWrap.height}
effects = {$styles.content.imgtext.linkWrap.effects}
JSwindow = 1
JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
JSwindow.expand = 0,0
enable.field = image_zoom
enable.ifEmpty.field = image_link
typolink.parameter.field = image_link
typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM
typolink.target = {$styles.content.links.target}
typolink.extTarget = {$styles.content.links.extTarget}
}
}
maxW = {$styles.content.imgtext.maxW}
maxW.override.data = register:maxImageWidth
maxWInText = {$styles.content.imgtext.maxWInText}
maxWInText.override.data = register:maxImageWidthInText
equalH.field = imageheight
spaceBelowAbove = 6
image_compression.field = image_compression
image_effects.field = image_effects
noRows.field = image_noRows
cols.field = imagecols
border.field = imageborder
caption {
1 = TEXT
1 {
if.isFalse = {$styles.content.imgtext.captionSplit}
field = imagecaption
required = 1
parseFunc = < lib.parseFunc
br = 1
fontTag = <p class="content">|</p>
wrapAlign.field = imagecaption_position
}
}
captionSplit = {$styles.content.imgtext.captionSplit}
captionSplit.cObject = TEXT
captionSplit.cObject.field = imagecaption
captionSplit.stdWrap < .caption.1
captionSplit.stdWrap {
field >
if >
}
borderCol = {$styles.content.imgtext.borderColor}
borderThick = {$styles.content.imgtext.borderThick}
colSpace = {$styles.content.imgtext.colSpace}
rowSpace = {$styles.content.imgtext.rowSpace}
textMargin = {$styles.content.imgtext.textMargin}
editIcons = tt_content : image [imageorient|imagewidth|imageheight],
[imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compress
ion|image_effects|image_frames],imagecaption[imagecaption_position]
editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.images
caption.editIcons = tt_content : imagecaption[imagecaption_position]
caption.editIcons.beforeLastTag=1
caption.editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.caption
stdWrap.prefixComment = 2 | Image block:
}
-------------------------------------------------------------------------------------------------------------------
Wie schaffe ich es nun, um dieses ganze Konstrukt einen Wrap in Form z.B. einer selbst formatierten Tabellenzelle zu erstellen resp. wie schaffe ich es, diesen Wrap auch noch je nach Eingabe unter header_layout zu unterteilen nach Normal, Layout1, Layout2, etc.?
Bitte helft mir...! ;-)
MfG
Thorsten