1 # ***************************************************************************
2 # Notice: "styles." (and "temp.") objects are UNSET after template parsing!
3 # Use "lib." for persisting storage of objects.
4 # ***************************************************************************
6 # Clear out any constants in this reserved room!
10 styles.content.get = CONTENT
13 select.orderBy = sorting
14 select.where = colPos=0
15 select.languageField = sys_language_uid
19 styles.content.getLeft < styles.content.get
20 styles.content.getLeft.select.where = colPos=1
23 styles.content.getRight < styles.content.get
24 styles.content.getRight.select.where = colPos=2
27 styles.content.getBorder < styles.content.get
28 styles.content.getBorder.select.where = colPos=3
31 styles.content.getNews < styles.content.get
32 styles.content.getNews.select.pidInList = {$styles.content.getNews.newsPid}
35 styles.content.editPanelPage = COA
36 styles.content.editPanelPage {
39 allow = toolbar,move,hide
40 label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.page
41 label.wrap = | <b>%s</b>
55 # *********************************************************************
56 # "lib." objects are preserved from unsetting after template parsing
57 # *********************************************************************
59 # Creates a condition for targets. Not allowed in XHTML except for xhtml frames DTD
63 isTrue.data = TSFE:dtdAllowsFrames
67 # Creates persistent ParseFunc setup for non-HTML content. This is recommended to use (as a reference!)
70 makelinks.http.keep = {$styles.content.links.keep}
71 makelinks.http.extTarget < lib.parseTarget
72 makelinks.http.extTarget =
73 makelinks.http.extTarget.override = {$styles.content.links.extTarget}
74 makelinks.mailto.keep = path
79 typolink.parameter.data = parameters : allParams
80 typolink.extTarget < lib.parseTarget
82 typolink.extTarget.override = {$styles.content.links.extTarget}
83 typolink.target < lib.parseTarget
85 typolink.target.override = {$styles.content.links.target}
86 parseFunc.constants =1
89 allowTags = {$styles.content.links.allowTags}
91 sword = <span class="csc-sword">|</span>
94 nonTypoTagStdWrap.HTMLparser = 1
95 nonTypoTagStdWrap.HTMLparser {
96 keepNonMatchedTags = 1
101 # good old parsefunc in "styles.content.parseFunc" is created for backwards compatibility. Don't use it, just ignore.
102 styles.content.parseFunc < lib.parseFunc
104 # Creates persistent ParseFunc setup for RTE content (which is mainly HTML) based on the "ts_css" transformation.
105 lib.parseFunc_RTE < lib.parseFunc
108 # Processing <table> and <blockquote> blocks separately
109 externalBlocks = article, aside, blockquote, div, dd, dl, footer, header, nav, ol, section, table, ul
111 # The blockquote content is passed into parseFunc again...
113 blockquote.callRecursive=1
114 blockquote.callRecursive.tagStdWrap.HTMLparser = 1
115 blockquote.callRecursive.tagStdWrap.HTMLparser.tags.blockquote.overrideAttribs = style="margin-bottom:0;margin-top:0;"
118 ol.stdWrap.parseFunc = < lib.parseFunc
121 ul.stdWrap.parseFunc = < lib.parseFunc
124 table.stdWrap.HTMLparser = 1
125 table.stdWrap.HTMLparser.tags.table.fixAttrib.class {
126 default = contenttable
130 table.stdWrap.HTMLparser.keepNonMatchedTags = 1
131 table.HTMLtableCells=1
132 table.HTMLtableCells {
133 # Recursive call to self but without wrapping non-wrapped cell content
135 parseFunc =< lib.parseFunc_RTE
136 parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag =
138 addChr10BetweenParagraphs=1
141 div.callRecursive = 1
150 # Definition list processing
154 nonTypoTagStdWrap.encapsLines {
155 encapsTagList = p,pre,h1,h2,h3,h4,h5,h6,hr,dt
158 innerStdWrap_all.ifBlank =
159 addAttributes.P.class = bodytext
160 addAttributes.P.class.setOnly=blank
162 nonTypoTagStdWrap.HTMLparser = 1
163 nonTypoTagStdWrap.HTMLparser {
164 keepNonMatchedTags = 1
174 # Create class attribute for <Hx> tags
180 # Create alignment class for <Hx> tags
183 field = header_position
185 noTrimWrap = |csc-header-alignment-| |
187 # Create "csc-firstHeader" class for <Hx> tags
190 value = csc-firstHeader
193 equals.data = cObj:parentRecordNumber
198 noTrimWrap = | class="|"|
205 # Date format (not HTML5)
217 equals.data = TSFE:config|config|doctype
222 wrap = <p class="csc-header-date">|</p>
223 prefixComment = 2 | Header date:
226 # HTML5 <hgroup> open
230 fieldRequired = subheader
233 equals.data = TSFE:config|config|doctype
237 # This CASE cObject renders the header content:
238 # currentValue is set to the header data, possibly wrapped in link-tags.
243 typolink.parameter.field = header_link
245 10.key.field = header_layout
246 10.key.ifEmpty = {$content.defaultHeaderType}
247 10.key.ifEmpty.override.data = register: defaultHeaderType
251 10.1.dataWrap = <h1{register:headerClass}>|</h1>
254 10.2.dataWrap = <h2{register:headerClass}>|</h2>
257 10.3.dataWrap = <h3{register:headerClass}>|</h3>
260 10.4.dataWrap = <h4{register:headerClass}>|</h4>
263 10.5.dataWrap = <h5{register:headerClass}>|</h5>
269 field = header_layout
298 equals.data = TSFE:config|config|doctype
302 # HTML5 <hgroup> close
313 wrap = <p class="csc-header-date">|</p>
323 noTrimWrap = | datetime="|"|
345 equals.data = TSFE:config|config|doctype
349 # Pops the used registers off the stack:
350 98 = RESTORE_REGISTER
353 stdWrap.fieldRequired = header
355 equals.field = header_layout
360 stdWrap.editIcons = tt_content : header, [header_layout | header_position], [header_link|date]
361 stdWrap.editIcons.beforeLastTag = 1
362 stdWrap.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.header
365 dataWrap = <div class="csc-header csc-header-n{cObj:parentRecordNumber}">|</div>
367 override = <header class="csc-header csc-header-n{cObj:parentRecordNumber}">|</header>
371 equals.data = TSFE:config|config|doctype
376 stdWrap.prefixComment = 2 | Header:
393 #******************************************************
394 # Including library for processing of some elements:
395 #******************************************************
396 includeLibs.tx_cssstyledcontent_pi1 = EXT:css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
399 #**********************************
400 # tt_content is started
401 #**********************************
404 tt_content.key.field = CType
406 innerWrap.cObject = CASE
408 key.field = section_frame
420 value = <div id="c{field:uid}"
430 override = <nav id="c{field:uid}"
434 equals.data = TSFE:config|config|doctype
444 # Create default class for content
451 # Create class for space before content
454 userFunc = tx_cssstyledcontent_pi1->renderSpace
456 constant = {$content.spaceBefore}
458 noTrimWrap = |csc-space-before-| |
461 # Create class for space after content
464 userFunc = tx_cssstyledcontent_pi1->renderSpace
466 constant = {$content.spaceAfter}
468 noTrimWrap = |csc-space-after-| |
473 noTrimWrap = | class="|"|
495 equals.data = TSFE:config|config|doctype
503 1 =< tt_content.stdWrap.innerWrap.cObject.default
504 1.20.10.value = csc-frame csc-frame-invisible
506 5 =< tt_content.stdWrap.innerWrap.cObject.default
507 5.20.10.value = csc-frame csc-frame-rulerBefore
509 6 =< tt_content.stdWrap.innerWrap.cObject.default
510 6.20.10.value = csc-frame csc-frame-rulerAfter
512 10 =< tt_content.stdWrap.innerWrap.cObject.default
513 10.20.10.value = csc-frame csc-frame-indent
515 11 =< tt_content.stdWrap.innerWrap.cObject.default
516 11.20.10.value = csc-frame csc-frame-indent3366
518 12 =< tt_content.stdWrap.innerWrap.cObject.default
519 12.20.10.value = csc-frame csc-frame-indent6633
521 20 =< tt_content.stdWrap.innerWrap.cObject.default
522 20.20.10.value = csc-frame csc-frame-frame1
524 21 =< tt_content.stdWrap.innerWrap.cObject.default
525 21.20.10.value = csc-frame csc-frame-frame2
531 value = <a id="c{field:uid}"></a>
534 # Create div with class for space before content
539 userFunc = tx_cssstyledcontent_pi1->renderSpace
541 constant = {$content.spaceBefore}
543 wrap = csc-space-before-|
547 wrap = <div class="|"></div>
557 # Create div with class for space after content
562 constant = {$content.spaceAfter}
564 wrap = csc-space-after-|
571 innerWrap2 = | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/pi1/locallang.xml:label.toTop}</a></p>
572 innerWrap2.insertData = 1
573 innerWrap2.fieldRequired = linkToTop
576 prepend.dataWrap = <a id="c{field:_LOCALIZED_UID}"></a>
577 prepend.if.isTrue.field = _LOCALIZED_UID
581 allow = move,new,edit,hide,delete
586 edit.displayRecord = 1
589 prefixComment = 1 | CONTENT ELEMENT, uid:{field:uid}/{field:CType}
597 # See Object path "lib.stdheader"
598 tt_content.header = COA
607 dataWrap = <p class="csc-subheader csc-subheader-{field:layout}">|</p>
612 equals.data = TSFE:config|config|doctype
616 editIcons = tt_content:subheader,layout
617 editIcons.beforeLastTag = 1
618 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.subheader
620 prefixComment = 2 | Subheader:
629 tt_content.text = COA
638 parseFunc = < lib.parseFunc_RTE
640 editIcons = tt_content:bodytext, rte_enabled
641 editIcons.beforeLastTag = 1
642 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.bodytext
644 prefixComment = 2 | Text:
653 # (also used for rendering 'textpic' type):
654 tt_content.image = COA
655 tt_content.image.10 = < lib.stdheader
656 tt_content.image.20 = USER
657 tt_content.image.20 {
658 userFunc = tx_cssstyledcontent_pi1->render_textpic
661 imgList.field = image
662 imgList.override.field = image_fileUids
663 imgPath = uploads/pics/
665 # Single image rendering
668 file.import.current = 1
669 file.width.field = imagewidth
672 bodyTag = <body style="margin:0; background:#fff;">
673 wrap = <a href="javascript:close();"> | </a>
674 width = {$styles.content.imgtext.linkWrap.width}
675 height = {$styles.content.imgtext.linkWrap.height}
676 effects = {$styles.content.imgtext.linkWrap.effects}
679 JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
680 JSwindow.if.isFalse = {$styles.content.imgtext.linkWrap.lightboxEnabled}
682 directImageLink = {$styles.content.imgtext.linkWrap.lightboxEnabled}
684 enable.field = image_zoom
685 enable.ifEmpty.typolink.parameter.field = image_link
686 enable.ifEmpty.typolink.parameter.listNum.splitChar = 10
687 enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
688 enable.ifEmpty.typolink.returnLast = url
690 typolink.parameter.field = image_link
691 typolink.parameter.listNum.splitChar = 10
692 typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
694 typolink.target < lib.parseTarget
696 typolink.target.override = {$styles.content.links.target}
698 typolink.extTarget < lib.parseTarget
700 typolink.extTarget.override = {$styles.content.links.extTarget}
702 linkParams.ATagParams.dataWrap = class="{$styles.content.imgtext.linkWrap.lightboxCssClass}" rel="{$styles.content.imgtext.linkWrap.lightboxRelAttribute}"
709 split.token.char = 10
710 split.token.if.isTrue = {$styles.content.imgtext.imageTextSplit}
711 split.returnKey.data = register : IMAGE_NUM_CURRENT
717 dataWrap = aria-describedby="csc-longdesc-{field:uid}-{register:IMAGE_NUM_CURRENT}"
724 parseFunc =< lib.parseFunc
728 if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
730 returnKey.data = register : IMAGE_NUM_CURRENT
745 returnKey.data = register : IMAGE_NUM_CURRENT
751 isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
753 equals.data = TSFE:config|config|doctype
759 titleText.field = titleText
768 returnKey.data = register : IMAGE_NUM_CURRENT
773 emptyTitleHandling = {$styles.content.imgtext.emptyTitleHandling}
774 titleInLink = {$styles.content.imgtext.titleInLink}
775 titleInLinkAndImg = {$styles.content.imgtext.titleInLinkAndImg}
778 textPos.field = imageorient
779 maxW = {$styles.content.imgtext.maxW}
780 maxW.override.data = register:maxImageWidth
781 maxWInText = {$styles.content.imgtext.maxWInText}
782 maxWInText.override.data = register:maxImageWidthInText
784 equalH.field = imageheight
786 image_compression.field = image_compression
787 image_effects.field = image_effects
789 noRows.field = image_noRows
791 cols.field = imagecols
792 border.field = imageborder
801 parseFunc =< lib.parseFunc
804 split.token.char = 10
805 split.token.if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
806 split.returnKey.data = register : IMAGE_NUM_CURRENT
818 returnKey.data = register : IMAGE_NUM_CURRENT
822 equals.data = TSFE:config|config|doctype
826 dataWrap = id="csc-longdesc-{field:uid}-{register:IMAGE_NUM_CURRENT}"
828 target = {$styles.content.links.target}
829 extTarget = {$styles.content.links.extTarget}
835 # captionSplit is deprecated, use imageTextSplit instead
836 captionSplit = {$styles.content.imgtext.captionSplit}
837 captionAlign.field = imagecaption_position
838 # caption/alttext/title/longdescURL splitting
839 imageTextSplit = {$styles.content.imgtext.imageTextSplit}
841 borderThick = {$styles.content.imgtext.borderThick}
842 borderClass = {$styles.content.imgtext.borderClass}
843 colSpace = {$styles.content.imgtext.colSpace}
844 textMargin = {$styles.content.imgtext.textMargin}
846 borderSpace = {$styles.content.imgtext.borderSpace}
847 separateRows = {$styles.content.imgtext.separateRows}
850 addClassesCol.ifEmpty = csc-textpic-firstcol csc-textpic-lastcol
851 addClassesCol.override = csc-textpic-firstcol |*| |*| csc-textpic-lastcol
852 addClassesCol.override.if {
853 isGreaterThan.field = imagecols
857 addClassesImage = csc-textpic-first |*| |*| csc-textpic-last
860 imageStdWrap.dataWrap = <div class="csc-textpic-imagewrap" style="width:{register:totalwidth}px;"> | </div>
861 imageStdWrapNoWidth.wrap = <div class="csc-textpic-imagewrap"> | </div>
863 # if noRows is set, wrap around each column:
864 imageColumnStdWrap.dataWrap = <div class="csc-textpic-imagecolumn" style="width:{register:columnwidth}px;"> | </div>
868 key.field = imageorient
871 default.value = <div class="csc-textpic csc-textpic-center csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div>
874 1.value = <div class="csc-textpic csc-textpic-right csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div>
877 2.value = <div class="csc-textpic csc-textpic-left csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div>
880 8.value = <div class="csc-textpic csc-textpic-center csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div>
883 9.value = <div class="csc-textpic csc-textpic-right csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div>
886 10.value = <div class="csc-textpic csc-textpic-left csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div>
889 17.value = <div class="csc-textpic csc-textpic-intext-right###CLASSES###">###IMAGES######TEXT###</div>
892 18.value = <div class="csc-textpic csc-textpic-intext-left###CLASSES###">###IMAGES######TEXT###</div>
893 # intext-right-nowrap
895 25.value = <div class="csc-textpic csc-textpic-intext-right-nowrap###CLASSES###">###IMAGES######TEXT###</div>
898 26.value = <div class="csc-textpic csc-textpic-intext-left-nowrap###CLASSES###">###IMAGES######TEXT###</div>
902 # Single image - No caption
904 # Choose another rendering for special edge cases
905 fallbackRendering = COA
907 # Single image - Caption
911 isTrue.field = imagecaption
913 equals.data = register:imageCount
915 value = singleCaption
918 # Multiple images and split caption
923 isGreaterThan.data = register:imageCount
924 isTrue.if.isFalse.data = register:renderGlobalCaption
925 isTrue.field = imagecaption
930 # Multiple images and one global caption
935 isGreaterThan.data = register:imageCount
936 isTrue.if.isTrue.data = register:renderGlobalCaption
937 isTrue.field = imagecaption
939 value = globalCaption
942 # Multiple images and no caption at all
947 isGreaterThan.data = register:imageCount
948 isFalse.field = imagecaption
954 wrap = <div class="csc-textpic-imagewrap"> | </div>
955 innerWrap.cObject = CASE
957 key.field = imageorient
960 0.value = <div class="csc-textpic-center-outer"><div class="csc-textpic-center-inner"> | </div></div>
966 wrap = <div class="csc-textpic-image###CLASSES###"> | </div>
968 override = <figure class="csc-textpic-image###CLASSES###"> | </figure>
972 equals.data = TSFE:config|config|doctype
978 noRowsStdWrap.wrap = |
979 lastRowStdWrap.wrap = |
980 columnStdWrap.wrap = |
981 imgTagStdWrap.wrap = |
982 editIconsStdWrap.wrap = <div> | </div>
986 # Multiple images and no caption at all
987 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
988 allStdWrap.wrap = <div class="csc-textpic-imagewrap"> | </div>
990 wrap = <div class="csc-textpic-image###CLASSES###"> | </div>
992 override = <figure class="csc-textpic-image###CLASSES###"> | </figure>
995 rowStdWrap.wrap = <div class="csc-textpic-imagerow"> | </div>
996 noRowsStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-none"> | </div>
997 lastRowStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last"> | </div>
998 columnStdWrap.wrap = <div class="csc-textpic-imagecolumn###CLASSES###"> | </div>
1001 # Just one image with a caption
1002 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
1004 wrap = <div class="csc-textpic-image###CLASSES###"><table>###CAPTION###<tbody><tr><td> | </td></tr></tbody></table></div>
1006 override = <figure class="csc-textpic-image###CLASSES###">|###CAPTION###</figure>
1010 equals.data = TSFE:config|config|doctype
1017 wrap = <caption class="csc-textpic-caption###CLASSES###"> | </caption>
1019 override = <figcaption class="csc-textpic-caption###CLASSES###"> | </figcaption>
1023 equals.data = TSFE:config|config|doctype
1030 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
1032 wrap = <div class="csc-textpic-image###CLASSES###"><table>###CAPTION###<tbody><tr><td> | </td></tr></tbody></table></div>
1034 override = <figure class="csc-textpic-image###CLASSES###">|###CAPTION###</figure>
1038 equals.data = TSFE:config|config|doctype
1043 rowStdWrap.wrap = <div class="csc-textpic-imagerow"> | </div>
1044 noRowsStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-none"> | </div>
1045 lastRowStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last"> | </div>
1046 columnStdWrap.wrap = <div class="csc-textpic-imagecolumn###CLASSES###"> | </div>
1049 wrap = <caption class="csc-textpic-caption###CLASSES###"> | </caption>
1051 override = <figcaption class="csc-textpic-caption###CLASSES###"> | </figcaption>
1055 equals.data = TSFE:config|config|doctype
1062 # Just one image without a caption
1063 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
1065 wrap = <div class="csc-textpic-imagewrap"><table>###CAPTION###<tbody> | </tbody></table></div>
1067 override = <figure class="csc-textpic-imagewrap"> | ###CAPTION###</figure>
1071 equals.data = TSFE:config|config|doctype
1077 wrap = <div class="csc-textpic-image###CLASSES###"> | </div>
1079 override = <div class="csc-textpic-image###CLASSES###"> | </div>
1082 rowStdWrap.wrap = <div class="csc-textpic-imagerow"> | </div>
1083 noRowsStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-none"> | </div>
1084 lastRowStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last"> | </div>
1085 columnStdWrap.wrap = <div class="csc-textpic-imagecolumn###CLASSES###"> | </div>
1088 wrap = <caption class="csc-textpic-caption"> | </caption>
1090 override = <figcaption class="csc-textpic-caption###CLASSES###"> | </figcaption>
1094 equals.data = TSFE:config|config|doctype
1101 renderMethod = singleNoCaption
1103 editIcons = tt_content : image [imageorient|imagewidth|imageheight], [imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compression|image_effects|image_frames],imagecaption[imagecaption_position]
1104 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.images
1106 caption.editIcons = tt_content : imagecaption[imagecaption_position]
1107 caption.editIcons.beforeLastTag=1
1108 caption.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.caption
1110 stdWrap.prefixComment = 2 | Image block:
1116 tt_content.textpic = COA
1117 tt_content.textpic {
1120 10.if.isLessThan.field = imageorient
1121 10.10 = < lib.stdheader
1123 20 = < tt_content.image.20
1128 if.isGreaterThan.field = imageorient
1129 10 = < lib.stdheader
1130 10.stdWrap.dataWrap = <div class="csc-textpicHeader csc-textpicHeader-{field:imageorient}">|</div>
1132 text.20 = < tt_content.text.20
1133 text.wrap = <div class="csc-textpic-text"> | </div>
1142 tt_content.bullets = COA
1143 tt_content.bullets {
1144 10 = < lib.stdheader
1152 cObjNum = |*|1|| 2|*|
1154 1.parseFunc =< lib.parseFunc
1155 1.wrap = <li class="odd">|</li>
1158 2.parseFunc =< lib.parseFunc
1159 2.wrap = <li class="even">|</li>
1161 dataWrap = <ul class="csc-bulletlist csc-bulletlist-{field:layout}">|</ul>
1162 editIcons = tt_content: bodytext, [layout]
1163 editIcons.beforeLastTag = 1
1164 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.bullets
1166 prefixComment = 2 | Bullet list:
1174 tt_content.uploads = COA
1175 tt_content.uploads {
1176 10 = < lib.stdheader
1180 # get from file references:
1186 collections.field = file_collections
1188 # get from path (backwards compatibility, contains strings like "fileadmin/user_uploads/")
1189 folders.field = select_key
1191 sorting.field = filelink_sorting
1198 file.import.data = file:current:originalUid // file:current:uid
1202 if.isGreaterThan.field = layout
1205 parameter.data = file:current:originalUid // file:current:uid
1206 parameter.wrap = file:|
1207 fileTarget < lib.parseTarget
1209 fileTarget.override = {$styles.content.uploads.target}
1210 fileTarget.override.override.field = target
1211 removePrependedNumbers = 1
1214 jumpurl = {$styles.content.uploads.jumpurl}
1216 secure = {$styles.content.uploads.jumpurl_secure}
1217 secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes}
1227 file.import = typo3/gfx/fileicons/
1228 file.import.data = file:current:extension
1229 file.import.case = lower
1230 file.import.wrap = |.gif
1234 isGreaterThan.field = layout
1236 # only show the icon if we don't have a thumbnail:
1237 isFalse.cObject = IMG_RESOURCE
1238 isFalse.cObject.file < tt_content.uploads.20.renderObj.10.file
1239 isFalse.cObject.stdWrap.if < tt_content.uploads.20.renderObj.10.stdWrap.if
1242 typolink < tt_content.uploads.20.renderObj.10.stdWrap.typolink
1249 data = file:current:name
1250 htmlSpecialChars = 1
1254 # equivalent to former useSpacesInLinkText = 0; remove using > to disable it
1260 # equivalent to former stripFileExtensionFromLinkText = 0; move "_20" to "20" to enable it. Disabled by default.
1262 search = /(.*)(\..*)/
1268 typolink < tt_content.uploads.20.renderObj.10.stdWrap.typolink
1270 wrap = <span class="csc-uploads-fileName">|</span>
1276 data = file:current:description
1277 htmlSpecialChars = 1
1278 wrap = <span class="csc-uploads-description">|</span>
1286 if.isTrue.field = filelink_size
1287 data = file:current:size
1288 wrap = <span class="csc-uploads-fileSize">|</span>
1290 bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
1293 # wrap of each listed file with odd/even class
1298 oddEvenClass = li-odd li-first |*| li-even || li-odd
1299 elementClass = csc-uploads-element csc-uploads-element-{register:fileExtension}
1300 elementClass.insertData = 1
1305 value = <li class="{register:oddEvenClass} {register:elementClass}">|</li>
1308 30 = RESTORE_REGISTER
1312 # wrap around whole content element with <ul> and editIcons
1314 editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size
1315 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.filelist
1316 prefixComment = 2 | File list:
1317 dataWrap = <ul class="csc-uploads csc-uploads-{field:layout}">|</ul>
1327 # Rendered by a PHP function specifically written to handle CE tables. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
1328 tt_content.table = COA
1330 10 = < lib.stdheader
1333 20.userFunc = tx_cssstyledcontent_pi1->render_table
1338 1 = {$styles.content.table.backgroundColor.1}
1339 2 = {$styles.content.table.backgroundColor.2}
1341 240 = {$styles.content.table.backgroundColor.240}
1342 241 = {$styles.content.table.backgroundColor.241}
1343 242 = {$styles.content.table.backgroundColor.242}
1344 243 = {$styles.content.table.backgroundColor.243}
1345 244 = {$styles.content.table.backgroundColor.244}
1367 20.innerStdWrap.wrap = |
1368 20.innerStdWrap.parseFunc = < lib.parseFunc
1371 editIcons = tt_content: cols, bodytext, [layout], [table_bgColor|table_border|table_cellspacing|table_cellpadding]
1372 editIcons.beforeLastTag = 1
1373 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.table
1375 prefixComment = 2 | Table:
1379 # ******************
1381 # ******************
1382 tt_content.multimedia = COA
1383 tt_content.multimedia {
1384 10 = < lib.stdheader
1387 20.file.field = multimedia
1388 20.file.wrap = uploads/media/
1390 20.params.field = bodytext
1393 editIcons = tt_content: multimedia, bodytext
1394 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1396 prefixComment = 2 | Multimedia element:
1403 tt_content.swfobject = COA
1404 tt_content.swfobject {
1405 10 = < lib.stdheader
1413 flexParams.field = pi_flexform
1415 alternativeContent.field = bodytext
1417 layout = ###SWFOBJECT###
1420 player = {$styles.content.media.videoPlayer}
1422 defaultWidth = {$styles.content.media.defaultVideoWidth}
1423 defaultHeight = {$styles.content.media.defaultVideoHeight}
1426 params.quality = high
1428 params.allowScriptAccess = sameDomain
1429 params.allowFullScreen = true
1437 player = {$styles.content.media.audioPlayer}
1439 defaultWidth = {$styles.content.media.defaultAudioWidth}
1440 defaultHeight = {$styles.content.media.defaultAudioHeight}
1443 params.quality = high
1444 params.allowScriptAccess = sameDomain
1448 flashvars.file = soundFile
1454 editIcons = tt_content: multimedia, imagewidth, imageheight, pi_flexform, bodytext
1455 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1457 prefixComment = 2 | SWFobject element:
1464 tt_content.qtobject = COA
1465 tt_content.qtobject {
1466 10 = < lib.stdheader
1474 flexParams.field = pi_flexform
1476 alternativeContent.field = bodytext
1478 layout = ###QTOBJECT###
1481 player = {$styles.content.media.videoPlayer}
1483 defaultWidth = {$styles.content.media.defaultVideoWidth}
1484 defaultHeight = {$styles.content.media.defaultVideoHeight}
1487 params.quality = high
1489 params.allowScriptAccess = sameDomain
1490 params.allowFullScreen = true
1498 player = {$styles.content.media.audioPlayer}
1500 defaultWidth = {$styles.content.media.defaultAudioWidth}
1501 defaultHeight = {$styles.content.media.defaultAudioHeight}
1504 params.quality = high
1505 params.allowScriptAccess = sameDomain
1509 flashvars.file = soundFile
1514 editIcons = tt_content: multimedia, imagewidth, imageheight, pi_flexform, bodytext
1515 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1517 prefixComment = 2 | QTobject element:
1524 tt_content.media = COA
1526 10 = < lib.stdheader
1531 flexParams.field = pi_flexform
1532 alternativeContent < tt_content.text.20
1533 alternativeContent.field = bodytext
1557 mimeConf.swfobject < tt_content.swfobject.20
1558 mimeConf.qtobject < tt_content.qtobject.20
1559 mimeConf.flowplayer < tt_content.swfobject.20
1560 mimeConf.flowplayer.audio.player = {$styles.content.media.flowPlayer}
1561 mimeConf.flowplayer.video.player = {$styles.content.media.flowPlayer}
1565 editIcons = tt_content: pi_flexform, bodytext
1566 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1568 prefixComment = 2 | Media element:
1572 # ******************
1574 # ******************
1575 tt_content.mailform = COA
1576 tt_content.mailform.10 = < lib.stdheader
1577 tt_content.mailform.20 = FORM
1578 tt_content.mailform.20 {
1582 dontMd5FieldNames = 1
1583 layout = <div class="csc-mailform-field">###LABEL### ###FIELD###</div>
1585 commentWrap.wrap = |
1586 radioWrap.wrap = |<br />
1587 radioWrap.accessibilityWrap = <fieldset###RADIO_FIELD_ID###><legend>###RADIO_GROUP_LABEL###</legend>|</fieldset>
1589 REQ.labelWrap.wrap = |
1590 COMMENT.layout = <div class="csc-mailform-label">###LABEL###</div>
1591 RADIO.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-radio">###FIELD###</span></div>
1592 LABEL.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-label">###FIELD###</span></div>
1593 target < lib.parseTarget
1595 target.override = {$styles.content.mailform.target}
1596 goodMess = {$styles.content.mailform.goodMess}
1597 badMess = {$styles.content.mailform.badMess}
1598 redirect.field = pages
1599 redirect.listNum = 0
1600 recipient.field = subheader
1601 data.field = bodytext
1603 hiddenFields.stdWrap.wrap = <div style="display:none;">|</div>
1605 params.radio = class="csc-mailform-radio"
1606 params.check = class="csc-mailform-check"
1607 params.submit = class="csc-mailform-submit"
1609 stdWrap.wrap = <fieldset class="csc-mailform"> | </fieldset>
1611 editIcons = tt_content: bodytext, pages, subheader
1612 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.form
1614 prefixComment = 2 | Mail form inserted:
1619 # ******************
1621 # ******************
1622 tt_content.search = COA
1623 tt_content.search.10 = < lib.stdheader
1625 tt_content.search.20 = SEARCHRESULT
1626 tt_content.search.20 {
1627 allowedCols = pages.title-subtitle-keywords-description : tt_content.header-bodytext-imagecaption : tt_address.name-title-address-email-company-city-country : tt_links.title-note-note2-url : tt_board.subject-message-author-email : tt_calender.title-note : tt_products.title-note-itemnumber
1628 languageField.tt_content = sys_language_uid
1633 10.field = pages_title
1634 10.htmlSpecialChars = 1
1636 parameter.field = uid
1637 target < lib.parseTarget
1639 target.override = {$styles.content.searchresult.resultTarget}
1640 additionalParams.data = register:SWORD_PARAMS
1641 additionalParams.required = 1
1642 additionalParams.wrap = &no_cache=1
1644 10.htmlSpecialChars = 1
1645 10.wrap = <h3 class="csc-searchResultHeader">|</h3>
1650 10.field = tt_content_bodytext
1652 10.htmlSpecialChars = 1
1654 20.stdWrap.crop = 200 | ...
1655 20.stdWrap.wrap = <p class="csc-searchResult">|</p>
1660 wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT###
1663 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.resultRange
1664 10.wrap = <td class="csc-searchResultRange"><p>|</p></td>
1667 20.value = ###PREV### ###NEXT###
1668 20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td>
1674 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.emptySearch
1675 10.wrap = <h3 class="csc-noSearchResultMsg">|</h3>
1679 next.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultNext
1682 prev.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultPrev
1684 target < lib.parseTarget
1686 target.override = {$styles.content.searchresult.target}
1690 stdWrap.prefixComment = 2 | Search result:
1694 tt_content.search.30 < tt_content.mailform.20
1695 tt_content.search.30 {
1696 goodMess = {$styles.content.searchform.goodMess}
1701 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchWord
1702 10.type = sword=input
1703 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchIn
1704 20.type = scols=select
1706 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.headersKeywords
1707 10.value = pages.title-subtitle-keywords-description:tt_content.header
1708 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.pageContent
1709 20.value = tt_content.header-bodytext-imagecaption
1711 30.type = stype=hidden
1713 40.type = submit=submit
1714 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchButton
1718 locationData = HTTP_POST_VARS
1721 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-searchform"> | </table>
1723 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.search
1725 prefixComment = 2 | Search form inserted:
1733 tt_content.menu = COA
1735 10 = < lib.stdheader
1739 key.field = menu_type
1741 # "Menu of these pages"
1745 special.value.field = pages
1750 if.isTrue.field = accessibility_bypass
1754 accessibility_bypass_text = TEXT
1755 accessibility_bypass_text {
1756 field = accessibility_bypass_text
1766 dataWrap = sorting>{field:sorting}
1768 languageField = sys_language_uid
1774 data = LLL:EXT:css_styled_content/pi1/locallang.xml:menu.bypassNavigation
1775 override.data = register:accessibility_bypass_text
1777 htmlSpecialChars = 1
1786 wrap = <li class="csc-nav-bypass">|</li>
1789 30 = RESTORE_REGISTER
1791 outerWrap = <ul class="csc-menu csc-menu-def">|</ul>
1796 target < lib.parseTarget
1798 target.override = {$PAGE_TARGET}
1800 stdWrap.htmlSpecialChars = 1
1801 wrapItemAndSub = <li>|</li>
1802 ATagTitle.field = description // title
1807 # "Menu of subpages to these pages"
1812 outerWrap = <ul class="csc-menu csc-menu-1">|</ul>
1816 # "Sitemap - liststyle"
1819 stdWrap < tt_content.menu.20.default.stdWrap
1821 outerWrap = <div class="csc-sitemap">|</div>
1825 target < lib.parseTarget
1827 target.override = {$PAGE_TARGET}
1831 stdWrap.htmlSpecialChars = 1
1832 wrapItemAndSub = <li>|</li>
1833 ATagTitle.field = description // title
1844 # "Section index (pagecontent w/Index checked - liststyle)"
1852 isFalse.field = pages
1858 outerWrap = <ul class="csc-menu csc-menu-3">|</ul>
1863 sectionIndex.type = header
1864 NO.wrapItemAndSub = <li class="csc-section">|</li>
1868 # "Menu of subpages to these pages (with abstract)"
1872 prepend.renderObj.wrap = <dt class="csc-nav-bypass">|</dt><dd> </dd>
1873 outerWrap = <dl class="csc-menu csc-menu-4">|</dl>
1877 linkWrap = <dt>|</dt>
1881 data = field : abstract // field : description // field : subtitle
1882 htmlSpecialChars = 1
1888 ATagTitle.field = description // title
1892 # "Recently updated pages"
1896 outerWrap = <ul class="csc-menu csc-menu-5">|</ul>
1901 excludeNoSearchPages = 1
1905 # "Related pages (based on keywords)"
1909 outerWrap = <ul class="csc-menu csc-menu-6">|</ul>
1913 excludeNoSearchPages = 1
1917 # "Menu of subpages to these pages + sections - liststyle"
1921 outerWrap = <ul class="csc-menu csc-menu-7">|</ul>
1927 sectionIndex.type = header
1929 NO.wrapItemAndSub = <li class="csc-section">|</li>
1932 # "Sitemaps of selected pages - liststyle"
1936 special.value.field = pages
1946 field = accessibility_title
1947 htmlSpecialChars = 1
1948 dataWrap = <map id="map{field:uid}" title="|">
1950 override = <map name="map{field:uid}" title="|">
1953 isFalse.data = TSFE:xhtmlDoctype
1966 field = accessibility_title
1970 editIcons = tt_content: menu_type, pages
1971 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.menuSitemap
1973 prefixComment = 2 | Menu/Sitemap element:
1982 # Should be a complete copy from the old static template "content (default)"
1983 tt_content.shortcut = COA
1984 tt_content.shortcut {
1986 20.key.field = layout
1989 source.field = records
1990 tables = {$content.shortcut.tables}
1994 source.field = records
1995 tables = {$content.shortcut.tables}
1999 editIcons = tt_content: records
2000 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.recordList
2002 prefixComment = 2 | Inclusion of other records (by reference):
2010 # Should be a complete copy from the old static template "content (default)" (except "lib.stdheader")
2011 tt_content.list = COA
2013 10 = < lib.stdheader
2016 20.key.field = list_type
2019 editIcons = tt_content: list_type, layout, select_key, pages [recursive]
2020 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.plugin
2022 prefixComment = 2 | Plugin inserted:
2030 tt_content.div = TEXT
2035 isTrue.data = TSFE:xhtmlDoctype
2037 wrap = <div class="divider">|</div>
2038 prefixComment = 2 | Div element
2045 # This truely IS a content object, launched from inside the PHP class of course.
2046 # Should be a complete copy from the old static template "content (default)"
2047 tt_content.html = TEXT
2051 editIcons = tt_content: pages
2052 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.html
2054 prefixComment = 2 | Raw HTML content:
2059 # Default error msg:
2061 tt_content.default = TEXT
2062 tt_content.default {
2064 wrap = <p style="background-color: yellow;"><b>ERROR:</b> Content Element type "|" has no rendering definition!</p>
2066 prefixComment = 2 | Unknown element message:
2069 # *********************************************************************
2071 # *********************************************************************
2079 plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE (
2081 .csc-header-alignment-center { text-align: center; }
2082 .csc-header-alignment-right { text-align: right; }
2083 .csc-header-alignment-left { text-align: left; }
2085 /* Clear floats after csc-textpic and after csc-textpic-imagerow */
2086 DIV.csc-textpic, DIV.csc-textpic DIV.csc-textpic-imagerow, UL.csc-uploads LI { overflow: hidden; }
2088 /* Set padding for tables */
2089 DIV.csc-textpic .csc-textpic-imagewrap table { border-collapse: collapse; border-spacing: 0; }
2090 DIV.csc-textpic .csc-textpic-imagewrap table tr td { padding: 0; vertical-align: top; }
2092 /* Settings for figure and figcaption (HTML5) */
2093 DIV.csc-textpic .csc-textpic-imagewrap FIGURE, DIV.csc-textpic FIGURE.csc-textpic-imagewrap { margin: 0; display: table; }
2096 FIGCAPTION.csc-textpic-caption { display: table-caption; }
2097 .csc-textpic-caption { text-align: left; caption-side: bottom; }
2098 DIV.csc-textpic-caption-c .csc-textpic-caption, .csc-textpic-imagewrap .csc-textpic-caption-c { text-align: center; }
2099 DIV.csc-textpic-caption-r .csc-textpic-caption, .csc-textpic-imagewrap .csc-textpic-caption-r { text-align: right; }
2100 DIV.csc-textpic-caption-l .csc-textpic-caption, .csc-textpic-imagewrap .csc-textpic-caption-l { text-align: left; }
2102 /* Float the columns */
2103 DIV.csc-textpic DIV.csc-textpic-imagecolumn { float: left; }
2105 /* Border just around the image */
2106 {$styles.content.imgtext.borderSelector} {
2107 border: {$styles.content.imgtext.borderThick}px solid {$styles.content.imgtext.borderColor};
2108 padding: {$styles.content.imgtext.borderSpace}px {$styles.content.imgtext.borderSpace}px;
2111 DIV.csc-textpic .csc-textpic-imagewrap IMG { border: none; display: block; }
2113 /* Space below each image (also in-between rows) */
2114 DIV.csc-textpic .csc-textpic-imagewrap .csc-textpic-image { margin-bottom: {$styles.content.imgtext.rowSpace}px; }
2115 DIV.csc-textpic .csc-textpic-imagewrap .csc-textpic-imagerow-last .csc-textpic-image { margin-bottom: 0; }
2117 /* colSpace around image columns, except for last column */
2118 DIV.csc-textpic-imagecolumn, TD.csc-textpic-imagecolumn .csc-textpic-image { margin-right: {$styles.content.imgtext.colSpace}px; }
2119 DIV.csc-textpic-imagecolumn.csc-textpic-lastcol, TD.csc-textpic-imagecolumn.csc-textpic-lastcol .csc-textpic-image { margin-right: 0; }
2121 /* Add margin from image-block to text (in case of "Text w/ images") */
2122 DIV.csc-textpic-intext-left .csc-textpic-imagewrap,
2123 DIV.csc-textpic-intext-left-nowrap .csc-textpic-imagewrap {
2124 margin-right: {$styles.content.imgtext.textMargin}px;
2126 DIV.csc-textpic-intext-right .csc-textpic-imagewrap,
2127 DIV.csc-textpic-intext-right-nowrap .csc-textpic-imagewrap {
2128 margin-left: {$styles.content.imgtext.textMargin}px;
2131 /* Positioning of images: */
2133 /* Center (above or below) */
2134 DIV.csc-textpic-center .csc-textpic-imagewrap, DIV.csc-textpic-center FIGURE.csc-textpic-imagewrap { overflow: hidden; }
2135 DIV.csc-textpic-center .csc-textpic-center-outer { position: relative; float: right; right: 50%; }
2136 DIV.csc-textpic-center .csc-textpic-center-inner { position: relative; float: right; right: -50%; }
2138 /* Right (above or below) */
2139 DIV.csc-textpic-right .csc-textpic-imagewrap { float: right; }
2140 DIV.csc-textpic-right DIV.csc-textpic-text { clear: right; }
2142 /* Left (above or below) */
2143 DIV.csc-textpic-left .csc-textpic-imagewrap { float: left; }
2144 DIV.csc-textpic-left DIV.csc-textpic-text { clear: left; }
2146 /* Left (in text) */
2147 DIV.csc-textpic-intext-left .csc-textpic-imagewrap { float: left; }
2149 /* Right (in text) */
2150 DIV.csc-textpic-intext-right .csc-textpic-imagewrap { float: right; }
2152 /* Right (in text, no wrap around) */
2153 DIV.csc-textpic-intext-right-nowrap .csc-textpic-imagewrap { float: right; }
2155 /* Left (in text, no wrap around) */
2156 DIV.csc-textpic-intext-left-nowrap .csc-textpic-imagewrap { float: left; }
2158 DIV.csc-textpic DIV.csc-textpic-imagerow-last, DIV.csc-textpic DIV.csc-textpic-imagerow-none DIV.csc-textpic-last { margin-bottom: 0; }
2160 /* Browser fixes: */
2162 /* Fix for unordered and ordered list with image "In text, left" */
2163 .csc-textpic-intext-left ol, .csc-textpic-intext-left ul { padding-left: 40px; overflow: auto; }
2166 UL.csc-uploads { padding: 0; }
2167 UL.csc-uploads LI { list-style: none outside none; margin: 1em 0; }
2168 UL.csc-uploads IMG { float: left; padding-right: 1em; vertical-align: top; }
2169 UL.csc-uploads SPAN { display: block; }
2170 UL.csc-uploads SPAN.csc-uploads-fileName { text-decoration: underline; }
2172 /* Table background colors: */
2174 TABLE.contenttable-color-1 { background-color: {$styles.content.table.backgroundColor.1}; }
2175 TABLE.contenttable-color-2 { background-color: {$styles.content.table.backgroundColor.2}; }
2176 TABLE.contenttable-color-240 { background-color: {$styles.content.table.backgroundColor.240}; }
2177 TABLE.contenttable-color-241 { background-color: {$styles.content.table.backgroundColor.241}; }
2178 TABLE.contenttable-color-242 { background-color: {$styles.content.table.backgroundColor.242}; }
2179 TABLE.contenttable-color-243 { background-color: {$styles.content.table.backgroundColor.243}; }
2180 TABLE.contenttable-color-244 { background-color: {$styles.content.table.backgroundColor.244}; }