# ***************** # CType: image # ***************** # (also used for rendering 'textpic' type): tt_content.image = COA tt_content.image.10 = < lib.stdheader tt_content.image.20 = USER tt_content.image.20 { userFunc = tx_cssstyledcontent_pi1->render_textpic # Image source imgList.field = image imgPath = uploads/pics/ # Single image rendering imgObjNum = 1 1 { file.import.current = 1 file.width.field = imagewidth imageLinkWrap = 1 imageLinkWrap { bodyTag = wrap = | 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} enable.field = image_zoom enable.ifEmpty.typolink.parameter.field = image_link enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT enable.ifEmpty.typolink.returnLast = url typolink.parameter.field = image_link typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT typolink.target = {$styles.content.links.target} typolink.extTarget = {$styles.content.links.extTarget} } altText = TEXT altText { field = altText stripHtml = 1 split.token.char = 10 split.token.if.isTrue = {$styles.content.imgtext.imageTextSplit} split.returnKey.data = register : IMAGE_NUM_CURRENT } titleText < .altText titleText.field = titleText longdescURL < .altText longdescURL.field = longdescURL emptyTitleHandling = {$styles.content.imgtext.emptyTitleHandling} titleInLink = {$styles.content.imgtext.titleInLink} titleInLinkAndImg = {$styles.content.imgtext.titleInLinkAndImg} } textPos.field = imageorient maxW = {$styles.content.imgtext.maxW} maxW.override.data = register:maxImageWidth maxWInText = {$styles.content.imgtext.maxWInText} maxWInText.override.data = register:maxImageWidthInText equalH.field = imageheight image_compression.field = image_compression image_effects.field = image_effects noRows.field = image_noRows cols.field = imagecols border.field = imageborder caption { 1 = TEXT 1 { field = imagecaption required = 1 parseFunc =< lib.parseFunc br = 1 split.token.char = 10 split.token.if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit} split.returnKey.data = register : IMAGE_NUM_CURRENT } } # captionSplit is deprecated, use imageTextSplit instead captionSplit = {$styles.content.imgtext.captionSplit} captionAlign.field = imagecaption_position # caption/alttext/title/longdescURL splitting imageTextSplit = {$styles.content.imgtext.imageTextSplit} borderCol = {$styles.content.imgtext.borderColor} borderThick = {$styles.content.imgtext.borderThick} borderClass = {$styles.content.imgtext.borderClass} colSpace = {$styles.content.imgtext.colSpace} rowSpace = {$styles.content.imgtext.rowSpace} textMargin = {$styles.content.imgtext.textMargin} borderSpace = {$styles.content.imgtext.borderSpace} separateRows = {$styles.content.imgtext.separateRows} addClasses = addClassesImage = addClassesImage.ifEmpty = csc-textpic-firstcol csc-textpic-lastcol addClassesImage.override = csc-textpic-firstcol |*| |*| csc-textpic-lastcol addClassesImage.override.if { isGreaterThan.field = imagecols value = 1 } # imageStdWrap.dataWrap =
|
imageStdWrapNoWidth.wrap =
|
# if noRows is set, wrap around each column: imageColumnStdWrap.dataWrap =
|
layout = CASE layout { key.field = imageorient # above-center default = TEXT default.value =
###IMAGES######TEXT###
# above-right 1 = TEXT 1.value =
###IMAGES######TEXT###
# above-left 2 = TEXT 2.value =
###IMAGES######TEXT###
# below-center 8 = TEXT 8.value =
###TEXT######IMAGES###
# below-right 9 = TEXT 9.value =
###TEXT######IMAGES###
# below-left 10 = TEXT 10.value =
###TEXT######IMAGES###
# intext-right 17 = TEXT 17.value =
###IMAGES######TEXT###
17.override =
###IMAGES######TEXT###
17.override.if.isTrue = {$styles.content.imgtext.addIntextClearer} # intext-left 18 = TEXT 18.value =
###IMAGES######TEXT###
18.override =
###IMAGES######TEXT###
18.override.if.isTrue = {$styles.content.imgtext.addIntextClearer} # intext-right-nowrap 25 = TEXT 25.value =
###IMAGES###
###TEXT###
25.insertData = 1 # intext-left-nowrap 26 = TEXT 26.value =
###IMAGES###
###TEXT###
26.insertData = 1 } rendering { dl { # Choose another rendering for special edge cases fallbackRendering = COA fallbackRendering { # Just one image without a caption => don't need the dl-overhead, use the "simple" rendering 10 = TEXT 10 { if { isFalse.field = imagecaption value = 1 equals.data = register:imageCount } value = simple } # Multiple images and one global caption => "ul" 20 = TEXT 20 { if { value = 1 isGreaterThan.data = register:imageCount isTrue.if.isTrue.data = register:renderGlobalCaption isTrue.field = imagecaption } value = ul } # Multiple images and no caption at all => "ul" 30 = TEXT 30 { if { value = 1 isGreaterThan.data = register:imageCount isFalse.field = imagecaption } value = ul } } imageRowStdWrap.dataWrap =
|
imageLastRowStdWrap.dataWrap =
|
noRowsStdWrap.wrap = oneImageStdWrap.dataWrap =
|
imgTagStdWrap.wrap =
|
editIconsStdWrap.wrap =
|
caption { required = 1 wrap =
|
} } ul { # Just one image without a caption => don't need the ul-overhead, use the "simple" rendering fallbackRendering < tt_content.image.20.rendering.dl.fallbackRendering.10 imageRowStdWrap.dataWrap =
imageLastRowStdWrap.dataWrap =
noRowsStdWrap.wrap = oneImageStdWrap.dataWrap =
  • |
  • imgTagStdWrap.wrap = editIconsStdWrap.wrap =
    |
    caption.wrap =
    |
    } div { # Just one image without a caption => don't need the div-overhead, use the "simple" rendering fallbackRendering < tt_content.image.20.rendering.dl.fallbackRendering.10 imageRowStdWrap.dataWrap =
    |
    imageLastRowStdWrap.dataWrap =
    |
    noRowsStdWrap.wrap = oneImageStdWrap.dataWrap =
    |
    imgTagStdWrap.wrap =
    |
    editIconsStdWrap.wrap =
    |
    caption.wrap =
    |
    } simple { imageRowStdWrap.dataWrap = | imageLastRowStdWrap.dataWrap = | noRowsStdWrap.wrap = oneImageStdWrap.dataWrap = | imgTagStdWrap.wrap = | editIconsStdWrap.wrap = | caption.wrap =
    |
    imageStdWrap.dataWrap =
    |
    imageStdWrapNoWidth.wrap =
    |
    } } renderMethod = dl editIcons = tt_content : image [imageorient|imagewidth|imageheight], [imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compression|image_effects|image_frames],imagecaption[imagecaption_position] editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.images caption.editIcons = tt_content : imagecaption[imagecaption_position] caption.editIcons.beforeLastTag=1 caption.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.caption stdWrap.prefixComment = 2 | Image block: } # **************** # CType: menu # **************** tt_content.menu = COA tt_content.menu { 10 = < lib.stdheader 19 = TEXT 19.value=
    20 = CASE 20 { key.field = menu_type # "Menu of these pages" default = HMENU default { special = list special.value.field = pages wrap = 1 = TMENU 1 { target = {$PAGE_TARGET} NO { stdWrap.htmlSpecialChars = 1 wrapItemAndSub =
  • |
  • ATagTitle.field = description // title } noBlur = 1 } } # "Menu of subpages to these pages" 1 < .default 1 { special = directory wrap = } # "Sitemap - liststyle" 2 = HMENU 2 { wrap =
    |
    1 = TMENU 1 { target = {$PAGE_TARGET} noBlur = 1 expAll = 1 wrap = NO { stdWrap.htmlSpecialChars = 1 wrapItemAndSub =
  • |
  • ATagTitle.field = description // title } } 2 < .1 3 < .1 4 < .1 5 < .1 6 < .1 7 < .1 } # "Section index (pagecontent w/Index checked - liststyle)" 3 < styles.content.get 3 { wrap = select.andWhere = sectionIndex!=0 select.pidInList.override.field = pages renderObj = TEXT renderObj { fieldRequired = header trim = 1 field = header htmlSpecialChars = 1 noBlur = 1 wrap =
  • |
  • typolink.parameter.field = pid typolink.section.field = uid } } # "Menu of subpages to these pages (with abstract)" 4 < .1 4 { wrap =
    |
    1.NO { wrapItemAndSub > linkWrap =
    |
    after { data = field : abstract // field : description // field : subtitle required = 1 htmlSpecialChars = 1 wrap =
    |
    } ATagTitle.field = description // title } } # "Recently updated pages" 5 < .default 5 { wrap = special = updated special { maxAge = 3600*24*7 excludeNoSearchPages = 1 } } # "Related pages (based on keywords)" 6 < .default 6 { wrap = special = keywords special { excludeNoSearchPages = 1 } } # "Menu of subpages to these pages + sections - liststyle" 7 < .1 7 { wrap = 1.expAll = 1 2 < .1 2 { sectionIndex = 1 sectionIndex.type = header wrap = NO.wrapItemAndSub =
  • |
  • } } } 20.stdWrap { editIcons = tt_content: menu_type, pages editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.menuSitemap prefixComment = 2 | Menu/Sitemap element: } 21 = TEXT 21.value=
    } tt_content.stdWrap.innerWrap.cObject.default.15 > tt_content.stdWrap.innerWrap.cObject.default.15 = COA tt_content.stdWrap.innerWrap.cObject.default.15 { # stdWrap.wrap = class="|" #stdWrap.noTrimWrap = | || stdWrap.noTrimWrap = | class="|"| required = 1 10 = TEXT # 10 { # value = csc-default # value = boxes # } 11 = TEXT 11 { append = TEXT append.char = 32 prepend = TEXT prepend.char = 32 if.isTrue.field = list_type # noTrimWrap = | || value = csc-plugin csc-plugin-{field:list_type} insertData = 1 } 20 = TEXT 20 { # append = TEXT # append.char = 32 prepend = TEXT prepend.char = 32 if.isFalse.field = list_type # noTrimWrap = | || value = boxes #if.value=shortcut #if.equals.field = CType #value = insertData = 1 } 21 = TEXT 21 { # append = TEXT # append.char = 32 prepend = TEXT prepend.char = 32 if.value=shortcut if.equals.field = CType value = _shortcut insertData = 1 } } tt_content.stdWrap.innerWrap.cObject { 1 =< tt_content.stdWrap.innerWrap.cObject.default 1.15.10.value = csc-frame csc-frame-invisible 5 =< tt_content.stdWrap.innerWrap.cObject.default 5.15.10.value = csc-frame csc-frame-rulerBefore 6 =< tt_content.stdWrap.innerWrap.cObject.default 6.15.10.value = csc-frame csc-frame-rulerAfter 10 =< tt_content.stdWrap.innerWrap.cObject.default 10.15.10.value = csc-frame csc-frame-indent 11 =< tt_content.stdWrap.innerWrap.cObject.default 11.15.10.value = csc-frame csc-frame-indent3366 12 =< tt_content.stdWrap.innerWrap.cObject.default 12.15.10.value = csc-frame csc-frame-indent6633 20 =< tt_content.stdWrap.innerWrap.cObject.default 20.15.10.value = csc-frame csc-frame-frame1 21 =< tt_content.stdWrap.innerWrap.cObject.default 21.15.10.value = csc-frame csc-frame-frame2 }