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 # This CASE cObject renders the header content:
227 # currentValue is set to the header data, possibly wrapped in link-tags.
232 typolink.parameter.field = header_link
234 10.key.field = header_layout
235 10.key.ifEmpty = {$content.defaultHeaderType}
236 10.key.ifEmpty.override.data = register: defaultHeaderType
240 10.1.dataWrap = <h1{register:headerClass}>|</h1>
243 10.2.dataWrap = <h2{register:headerClass}>|</h2>
246 10.3.dataWrap = <h3{register:headerClass}>|</h3>
249 10.4.dataWrap = <h4{register:headerClass}>|</h4>
252 10.5.dataWrap = <h5{register:headerClass}>|</h5>
258 field = header_layout
287 equals.data = TSFE:config|config|doctype
288 # Hide subheader for old style form element (it is used for recipient mail)
292 if.equals.field = CType
303 wrap = <p class="csc-header-date">|</p>
313 noTrimWrap = | datetime="|"|
335 equals.data = TSFE:config|config|doctype
339 # Pops the used registers off the stack:
340 98 = RESTORE_REGISTER
343 stdWrap.fieldRequired = header
345 equals.field = header_layout
350 stdWrap.editIcons = tt_content : header, [header_layout | header_position], [header_link|date]
351 stdWrap.editIcons.beforeLastTag = 1
352 stdWrap.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.header
355 dataWrap = <div class="csc-header csc-header-n{cObj:parentRecordNumber}">|</div>
357 override = <header class="csc-header csc-header-n{cObj:parentRecordNumber}">|</header>
361 equals.data = TSFE:config|config|doctype
366 stdWrap.prefixComment = 2 | Header:
383 #******************************************************
384 # Including library for processing of some elements:
385 #******************************************************
386 includeLibs.tx_cssstyledcontent_pi1 = EXT:css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
389 #**********************************
390 # tt_content is started
391 #**********************************
394 tt_content.key.field = CType
396 innerWrap.cObject = CASE
398 key.field = section_frame
410 value = <div id="c{field:uid}"
420 override = <nav id="c{field:uid}"
424 equals.data = TSFE:config|config|doctype
434 # Create default class for content
441 # Create class for space before content
444 userFunc = tx_cssstyledcontent_pi1->renderSpace
446 constant = {$content.spaceBefore}
448 noTrimWrap = |csc-space-before-| |
451 # Create class for space after content
454 userFunc = tx_cssstyledcontent_pi1->renderSpace
456 constant = {$content.spaceAfter}
458 noTrimWrap = |csc-space-after-| |
463 noTrimWrap = | class="|"|
485 equals.data = TSFE:config|config|doctype
493 1 =< tt_content.stdWrap.innerWrap.cObject.default
494 1.20.10.value = csc-frame csc-frame-invisible
496 5 =< tt_content.stdWrap.innerWrap.cObject.default
497 5.20.10.value = csc-frame csc-frame-rulerBefore
499 6 =< tt_content.stdWrap.innerWrap.cObject.default
500 6.20.10.value = csc-frame csc-frame-rulerAfter
502 10 =< tt_content.stdWrap.innerWrap.cObject.default
503 10.20.10.value = csc-frame csc-frame-indent
505 11 =< tt_content.stdWrap.innerWrap.cObject.default
506 11.20.10.value = csc-frame csc-frame-indent3366
508 12 =< tt_content.stdWrap.innerWrap.cObject.default
509 12.20.10.value = csc-frame csc-frame-indent6633
511 20 =< tt_content.stdWrap.innerWrap.cObject.default
512 20.20.10.value = csc-frame csc-frame-frame1
514 21 =< tt_content.stdWrap.innerWrap.cObject.default
515 21.20.10.value = csc-frame csc-frame-frame2
521 value = <a id="c{field:uid}"></a>
524 # Create div with class for space before content
529 userFunc = tx_cssstyledcontent_pi1->renderSpace
531 constant = {$content.spaceBefore}
533 wrap = csc-space-before-|
537 wrap = <div class="|"></div>
547 # Create div with class for space after content
552 constant = {$content.spaceAfter}
554 wrap = csc-space-after-|
561 innerWrap2 = | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/pi1/locallang.xml:label.toTop}</a></p>
562 innerWrap2.insertData = 1
563 innerWrap2.fieldRequired = linkToTop
566 prepend.dataWrap = <a id="c{field:_LOCALIZED_UID}"></a>
567 prepend.if.isTrue.field = _LOCALIZED_UID
571 allow = move,new,edit,hide,delete
576 edit.displayRecord = 1
579 prefixComment = 1 | CONTENT ELEMENT, uid:{field:uid}/{field:CType}
587 # See Object path "lib.stdheader"
588 tt_content.header = COA
597 dataWrap = <p class="csc-subheader csc-subheader-{field:layout}">|</p>
602 equals.data = TSFE:config|config|doctype
606 editIcons = tt_content:subheader,layout
607 editIcons.beforeLastTag = 1
608 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.subheader
610 prefixComment = 2 | Subheader:
619 tt_content.text = COA
628 parseFunc = < lib.parseFunc_RTE
630 editIcons = tt_content:bodytext, rte_enabled
631 editIcons.beforeLastTag = 1
632 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.bodytext
634 prefixComment = 2 | Text:
643 # (also used for rendering 'textpic' type):
644 tt_content.image = COA
645 tt_content.image.10 = < lib.stdheader
646 tt_content.image.20 = USER
647 tt_content.image.20 {
648 userFunc = tx_cssstyledcontent_pi1->render_textpic
651 imgList.field = image
652 imgList.override.field = image_fileUids
653 imgPath = uploads/pics/
655 # Single image rendering
658 file.import.current = 1
659 file.width.field = imagewidth
662 bodyTag = <body style="margin:0; background:#fff;">
663 wrap = <a href="javascript:close();"> | </a>
664 width = {$styles.content.imgtext.linkWrap.width}
665 height = {$styles.content.imgtext.linkWrap.height}
666 effects = {$styles.content.imgtext.linkWrap.effects}
669 JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
670 JSwindow.if.isFalse = {$styles.content.imgtext.linkWrap.lightboxEnabled}
672 directImageLink = {$styles.content.imgtext.linkWrap.lightboxEnabled}
674 enable.field = image_zoom
675 enable.ifEmpty.typolink.parameter.field = image_link
676 enable.ifEmpty.typolink.parameter.listNum.splitChar = 10
677 enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
678 enable.ifEmpty.typolink.returnLast = url
680 typolink.parameter.field = image_link
681 typolink.parameter.listNum.splitChar = 10
682 typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
684 typolink.target < lib.parseTarget
686 typolink.target.override = {$styles.content.links.target}
688 typolink.extTarget < lib.parseTarget
690 typolink.extTarget.override = {$styles.content.links.extTarget}
692 linkParams.ATagParams.dataWrap = class="{$styles.content.imgtext.linkWrap.lightboxCssClass}" rel="{$styles.content.imgtext.linkWrap.lightboxRelAttribute}"
699 split.token.char = 10
700 split.token.if.isTrue = {$styles.content.imgtext.imageTextSplit}
701 split.returnKey.data = register : IMAGE_NUM_CURRENT
707 dataWrap = aria-describedby="csc-longdesc-{field:uid}-{register:IMAGE_NUM_CURRENT}"
714 parseFunc =< lib.parseFunc
718 if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
720 returnKey.data = register : IMAGE_NUM_CURRENT
735 returnKey.data = register : IMAGE_NUM_CURRENT
741 isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
743 equals.data = TSFE:config|config|doctype
749 titleText.field = titleText
758 returnKey.data = register : IMAGE_NUM_CURRENT
763 emptyTitleHandling = {$styles.content.imgtext.emptyTitleHandling}
764 titleInLink = {$styles.content.imgtext.titleInLink}
765 titleInLinkAndImg = {$styles.content.imgtext.titleInLinkAndImg}
768 textPos.field = imageorient
769 maxW = {$styles.content.imgtext.maxW}
770 maxW.override.data = register:maxImageWidth
771 maxWInText = {$styles.content.imgtext.maxWInText}
772 maxWInText.override.data = register:maxImageWidthInText
774 equalH.field = imageheight
776 image_compression.field = image_compression
777 image_effects.field = image_effects
779 noRows.field = image_noRows
781 cols.field = imagecols
782 border.field = imageborder
791 parseFunc =< lib.parseFunc
793 split.token.char = 10
794 split.token.if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
795 split.returnKey.data = register : IMAGE_NUM_CURRENT
807 returnKey.data = register : IMAGE_NUM_CURRENT
811 equals.data = TSFE:config|config|doctype
815 dataWrap = id="csc-longdesc-{field:uid}-{register:IMAGE_NUM_CURRENT}"
817 target = {$styles.content.links.target}
818 extTarget = {$styles.content.links.extTarget}
824 # captionSplit is deprecated, use imageTextSplit instead
825 captionSplit = {$styles.content.imgtext.captionSplit}
826 captionAlign.field = imagecaption_position
827 # caption/alttext/title/longdescURL splitting
828 imageTextSplit = {$styles.content.imgtext.imageTextSplit}
830 borderThick = {$styles.content.imgtext.borderThick}
831 borderClass = {$styles.content.imgtext.borderClass}
832 colSpace = {$styles.content.imgtext.colSpace}
833 textMargin = {$styles.content.imgtext.textMargin}
835 borderSpace = {$styles.content.imgtext.borderSpace}
836 separateRows = {$styles.content.imgtext.separateRows}
839 addClassesCol.ifEmpty = csc-textpic-firstcol csc-textpic-lastcol
840 addClassesCol.override = csc-textpic-firstcol |*| |*| csc-textpic-lastcol
841 addClassesCol.override.if {
842 isGreaterThan.field = imagecols
846 addClassesImage = csc-textpic-first |*| |*| csc-textpic-last
849 imageStdWrap.dataWrap = <div class="csc-textpic-imagewrap" style="width:{register:totalwidth}px;"> | </div>
850 imageStdWrapNoWidth.wrap = <div class="csc-textpic-imagewrap"> | </div>
852 # if noRows is set, wrap around each column:
853 imageColumnStdWrap.dataWrap = <div class="csc-textpic-imagecolumn" style="width:{register:columnwidth}px;"> | </div>
857 key.field = imageorient
860 default.value = <div class="csc-textpic csc-textpic-center csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div>
863 1.value = <div class="csc-textpic csc-textpic-right csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div>
866 2.value = <div class="csc-textpic csc-textpic-left csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div>
869 8.value = <div class="csc-textpic csc-textpic-center csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div>
872 9.value = <div class="csc-textpic csc-textpic-right csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div>
875 10.value = <div class="csc-textpic csc-textpic-left csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div>
878 17.value = <div class="csc-textpic csc-textpic-intext-right###CLASSES###">###IMAGES######TEXT###</div>
881 18.value = <div class="csc-textpic csc-textpic-intext-left###CLASSES###">###IMAGES######TEXT###</div>
882 # intext-right-nowrap
884 25.value = <div class="csc-textpic csc-textpic-intext-right-nowrap###CLASSES###">###IMAGES######TEXT###</div>
887 26.value = <div class="csc-textpic csc-textpic-intext-left-nowrap###CLASSES###">###IMAGES######TEXT###</div>
891 # Single image - No caption
893 # Choose another rendering for special edge cases
894 fallbackRendering = COA
896 # Single image - Caption
900 isTrue.field = imagecaption
902 equals.data = register:imageCount
904 value = singleCaption
907 # Multiple images and split caption
912 isGreaterThan.data = register:imageCount
913 isTrue.if.isFalse.data = register:renderGlobalCaption
914 isTrue.field = imagecaption
919 # Multiple images and one global caption
924 isGreaterThan.data = register:imageCount
925 isTrue.if.isTrue.data = register:renderGlobalCaption
926 isTrue.field = imagecaption
928 value = globalCaption
931 # Multiple images and no caption at all
936 isGreaterThan.data = register:imageCount
937 isFalse.field = imagecaption
943 dataWrap = <div class="csc-textpic-imagewrap"> | </div>
945 override = <div class="csc-textpic-imagewrap" data-csc-images="{register:imageCount}" data-csc-cols="{field:imagecols}"> | </div>
949 equals.data = TSFE:config|config|doctype
953 innerWrap.cObject = CASE
955 key.field = imageorient
958 0.value = <div class="csc-textpic-center-outer"><div class="csc-textpic-center-inner"> | </div></div>
964 wrap = <div class="csc-textpic-image###CLASSES###"> | </div>
966 override = <figure class="csc-textpic-image###CLASSES###"> | </figure>
970 equals.data = TSFE:config|config|doctype
976 noRowsStdWrap.wrap = |
977 lastRowStdWrap.wrap = |
978 columnStdWrap.wrap = |
979 imgTagStdWrap.wrap = |
980 editIconsStdWrap.wrap = <div> | </div>
984 # Multiple images and no caption at all
985 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
987 dataWrap = <div class="csc-textpic-imagewrap"> | </div>
989 override = <div class="csc-textpic-imagewrap" data-csc-images="{register:imageCount}" data-csc-cols="{field:imagecols}"> | </div>
993 equals.data = TSFE:config|config|doctype
999 wrap = <div class="csc-textpic-image###CLASSES###"> | </div>
1001 override = <figure class="csc-textpic-image###CLASSES###"> | </figure>
1004 rowStdWrap.wrap = <div class="csc-textpic-imagerow"> | </div>
1005 noRowsStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-none"> | </div>
1006 lastRowStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last"> | </div>
1007 columnStdWrap.wrap = <div class="csc-textpic-imagecolumn###CLASSES###"> | </div>
1010 # Just one image with a caption
1011 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
1013 wrap = <div class="csc-textpic-image###CLASSES###"><table>###CAPTION###<tbody><tr><td> | </td></tr></tbody></table></div>
1015 override = <figure class="csc-textpic-image###CLASSES###">|###CAPTION###</figure>
1019 equals.data = TSFE:config|config|doctype
1026 wrap = <caption class="csc-textpic-caption###CLASSES###"> | </caption>
1028 override = <figcaption class="csc-textpic-caption###CLASSES###"> | </figcaption>
1032 equals.data = TSFE:config|config|doctype
1039 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
1041 wrap = <div class="csc-textpic-image###CLASSES###"><table>###CAPTION###<tbody><tr><td> | </td></tr></tbody></table></div>
1043 override = <figure class="csc-textpic-image###CLASSES###">|###CAPTION###</figure>
1047 equals.data = TSFE:config|config|doctype
1052 rowStdWrap.wrap = <div class="csc-textpic-imagerow"> | </div>
1053 noRowsStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-none"> | </div>
1054 lastRowStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last"> | </div>
1055 columnStdWrap.wrap = <div class="csc-textpic-imagecolumn###CLASSES###"> | </div>
1058 wrap = <caption class="csc-textpic-caption###CLASSES###"> | </caption>
1060 override = <figcaption class="csc-textpic-caption###CLASSES###"> | </figcaption>
1064 equals.data = TSFE:config|config|doctype
1071 # Just one image without a caption
1072 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
1074 dataWrap = <div class="csc-textpic-imagewrap"><table>###CAPTION###<tbody> | </tbody></table></div>
1076 override = <figure class="csc-textpic-imagewrap" data-csc-images="{register:imageCount}" data-csc-cols="{field:imagecols}"> | ###CAPTION###</figure>
1080 equals.data = TSFE:config|config|doctype
1086 wrap = <div class="csc-textpic-image###CLASSES###"> | </div>
1088 override = <div class="csc-textpic-image###CLASSES###"> | </div>
1091 rowStdWrap.wrap = <div class="csc-textpic-imagerow"> | </div>
1092 noRowsStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-none"> | </div>
1093 lastRowStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last"> | </div>
1094 columnStdWrap.wrap = <div class="csc-textpic-imagecolumn###CLASSES###"> | </div>
1097 wrap = <caption class="csc-textpic-caption"> | </caption>
1099 override = <figcaption class="csc-textpic-caption###CLASSES###"> | </figcaption>
1103 equals.data = TSFE:config|config|doctype
1110 renderMethod = singleNoCaption
1112 editIcons = tt_content : image [imageorient|imagewidth|imageheight], [imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compression|image_effects|image_frames],imagecaption[imagecaption_position]
1113 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.images
1115 caption.editIcons = tt_content : imagecaption[imagecaption_position]
1116 caption.editIcons.beforeLastTag=1
1117 caption.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.caption
1119 stdWrap.prefixComment = 2 | Image block:
1125 tt_content.textpic = COA
1126 tt_content.textpic {
1129 10.if.isLessThan.field = imageorient
1130 10.10 = < lib.stdheader
1132 20 = < tt_content.image.20
1137 if.isGreaterThan.field = imageorient
1138 10 = < lib.stdheader
1139 10.stdWrap.dataWrap = <div class="csc-textpicHeader csc-textpicHeader-{field:imageorient}">|</div>
1141 text.20 = < tt_content.text.20
1142 text.wrap = <div class="csc-textpic-text"> | </div>
1151 tt_content.bullets = COA
1152 tt_content.bullets {
1153 10 = < lib.stdheader
1161 cObjNum = |*|1|| 2|*|
1163 1.parseFunc =< lib.parseFunc
1164 1.wrap = <li class="odd">|</li>
1167 2.parseFunc =< lib.parseFunc
1168 2.wrap = <li class="even">|</li>
1170 dataWrap = <ul class="csc-bulletlist csc-bulletlist-{field:layout}">|</ul>
1171 editIcons = tt_content: bodytext, [layout]
1172 editIcons.beforeLastTag = 1
1173 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.bullets
1175 prefixComment = 2 | Bullet list:
1183 tt_content.uploads = COA
1184 tt_content.uploads {
1185 10 = < lib.stdheader
1189 # get from file references:
1195 collections.field = file_collections
1197 # get from path (backwards compatibility, contains strings like "fileadmin/user_uploads/")
1198 folders.field = select_key
1200 sorting.field = filelink_sorting
1207 file.import.data = file:current:originalUid // file:current:uid
1211 if.isGreaterThan.field = layout
1214 parameter.data = file:current:originalUid // file:current:uid
1215 parameter.wrap = file:|
1216 fileTarget < lib.parseTarget
1218 fileTarget.override = {$styles.content.uploads.target}
1219 fileTarget.override.override.field = target
1220 removePrependedNumbers = 1
1223 jumpurl = {$styles.content.uploads.jumpurl}
1225 secure = {$styles.content.uploads.jumpurl_secure}
1226 secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes}
1236 file.import = typo3/gfx/fileicons/
1237 file.import.data = file:current:extension
1238 file.import.case = lower
1239 file.import.wrap = |.gif
1243 isGreaterThan.field = layout
1245 # only show the icon if we don't have a thumbnail:
1246 isFalse.cObject = IMG_RESOURCE
1247 isFalse.cObject.file < tt_content.uploads.20.renderObj.10.file
1248 isFalse.cObject.stdWrap.if < tt_content.uploads.20.renderObj.10.stdWrap.if
1251 typolink < tt_content.uploads.20.renderObj.10.stdWrap.typolink
1258 data = file:current:name
1259 htmlSpecialChars = 1
1263 # equivalent to former useSpacesInLinkText = 0; remove using > to disable it
1269 # equivalent to former stripFileExtensionFromLinkText = 0; move "_20" to "20" to enable it. Disabled by default.
1271 search = /(.*)(\..*)/
1277 typolink < tt_content.uploads.20.renderObj.10.stdWrap.typolink
1279 wrap = <span class="csc-uploads-fileName">|</span>
1285 data = file:current:description
1286 htmlSpecialChars = 1
1287 wrap = <span class="csc-uploads-description">|</span>
1295 if.isTrue.field = filelink_size
1296 data = file:current:size
1297 wrap = <span class="csc-uploads-fileSize">|</span>
1299 bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
1302 # wrap of each listed file with odd/even class
1307 oddEvenClass = li-odd li-first |*| li-even || li-odd
1308 elementClass = csc-uploads-element csc-uploads-element-{file:current:extension}
1309 elementClass.insertData = 1
1314 value = <li class="{register:oddEvenClass} {register:elementClass}">|</li>
1317 30 = RESTORE_REGISTER
1321 # wrap around whole content element with <ul> and editIcons
1323 editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size
1324 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.filelist
1325 prefixComment = 2 | File list:
1326 dataWrap = <ul class="csc-uploads csc-uploads-{field:layout}">|</ul>
1336 # Rendered by a PHP function specifically written to handle CE tables. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
1337 tt_content.table = COA
1339 10 = < lib.stdheader
1342 20.userFunc = tx_cssstyledcontent_pi1->render_table
1347 1 = {$styles.content.table.backgroundColor.1}
1348 2 = {$styles.content.table.backgroundColor.2}
1350 240 = {$styles.content.table.backgroundColor.240}
1351 241 = {$styles.content.table.backgroundColor.241}
1352 242 = {$styles.content.table.backgroundColor.242}
1353 243 = {$styles.content.table.backgroundColor.243}
1354 244 = {$styles.content.table.backgroundColor.244}
1376 20.innerStdWrap.wrap = |
1377 20.innerStdWrap.parseFunc = < lib.parseFunc
1380 editIcons = tt_content: cols, bodytext, [layout], [table_bgColor|table_border|table_cellspacing|table_cellpadding]
1381 editIcons.beforeLastTag = 1
1382 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.table
1384 prefixComment = 2 | Table:
1388 # ******************
1390 # ******************
1391 tt_content.multimedia = COA
1392 tt_content.multimedia {
1393 10 = < lib.stdheader
1396 20.file.field = multimedia
1397 20.file.wrap = uploads/media/
1399 20.params.field = bodytext
1402 editIcons = tt_content: multimedia, bodytext
1403 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1405 prefixComment = 2 | Multimedia element:
1412 tt_content.swfobject = COA
1413 tt_content.swfobject {
1414 10 = < lib.stdheader
1422 flexParams.field = pi_flexform
1424 alternativeContent.field = bodytext
1426 layout = ###SWFOBJECT###
1429 player = {$styles.content.media.videoPlayer}
1431 defaultWidth = {$styles.content.media.defaultVideoWidth}
1432 defaultHeight = {$styles.content.media.defaultVideoHeight}
1435 params.quality = high
1437 params.allowScriptAccess = sameDomain
1438 params.allowFullScreen = true
1446 player = {$styles.content.media.audioPlayer}
1448 defaultWidth = {$styles.content.media.defaultAudioWidth}
1449 defaultHeight = {$styles.content.media.defaultAudioHeight}
1452 params.quality = high
1453 params.allowScriptAccess = sameDomain
1457 flashvars.file = soundFile
1463 editIcons = tt_content: multimedia, imagewidth, imageheight, pi_flexform, bodytext
1464 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1466 prefixComment = 2 | SWFobject element:
1473 tt_content.qtobject = COA
1474 tt_content.qtobject {
1475 10 = < lib.stdheader
1483 flexParams.field = pi_flexform
1485 alternativeContent.field = bodytext
1487 layout = ###QTOBJECT###
1490 player = {$styles.content.media.videoPlayer}
1492 defaultWidth = {$styles.content.media.defaultVideoWidth}
1493 defaultHeight = {$styles.content.media.defaultVideoHeight}
1496 params.quality = high
1498 params.allowScriptAccess = sameDomain
1499 params.allowFullScreen = true
1507 player = {$styles.content.media.audioPlayer}
1509 defaultWidth = {$styles.content.media.defaultAudioWidth}
1510 defaultHeight = {$styles.content.media.defaultAudioHeight}
1513 params.quality = high
1514 params.allowScriptAccess = sameDomain
1518 flashvars.file = soundFile
1523 editIcons = tt_content: multimedia, imagewidth, imageheight, pi_flexform, bodytext
1524 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1526 prefixComment = 2 | QTobject element:
1533 tt_content.media = COA
1535 10 = < lib.stdheader
1540 flexParams.field = pi_flexform
1541 alternativeContent < tt_content.text.20
1542 alternativeContent.field = bodytext
1566 mimeConf.swfobject < tt_content.swfobject.20
1567 mimeConf.qtobject < tt_content.qtobject.20
1568 mimeConf.flowplayer < tt_content.swfobject.20
1569 mimeConf.flowplayer.audio.player = {$styles.content.media.flowPlayer}
1570 mimeConf.flowplayer.video.player = {$styles.content.media.flowPlayer}
1574 editIcons = tt_content: pi_flexform, bodytext
1575 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1577 prefixComment = 2 | Media element:
1581 # ******************
1583 # ******************
1584 tt_content.mailform = COA
1585 tt_content.mailform.10 = < lib.stdheader
1586 tt_content.mailform.20 = FORM
1587 tt_content.mailform.20 {
1591 dontMd5FieldNames = 1
1592 layout = <div class="csc-mailform-field">###LABEL### ###FIELD###</div>
1594 commentWrap.wrap = |
1595 radioWrap.wrap = |<br />
1596 radioWrap.accessibilityWrap = <fieldset###RADIO_FIELD_ID###><legend>###RADIO_GROUP_LABEL###</legend>|</fieldset>
1598 REQ.labelWrap.wrap = |
1599 COMMENT.layout = <div class="csc-mailform-label">###LABEL###</div>
1600 RADIO.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-radio">###FIELD###</span></div>
1601 LABEL.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-label">###FIELD###</span></div>
1602 target < lib.parseTarget
1604 target.override = {$styles.content.mailform.target}
1605 goodMess = {$styles.content.mailform.goodMess}
1606 badMess = {$styles.content.mailform.badMess}
1607 redirect.field = pages
1608 redirect.listNum = 0
1609 recipient.field = subheader
1610 data.field = bodytext
1612 hiddenFields.stdWrap.wrap = <div style="display:none;">|</div>
1614 params.radio = class="csc-mailform-radio"
1615 params.check = class="csc-mailform-check"
1616 params.submit = class="csc-mailform-submit"
1618 stdWrap.wrap = <fieldset class="csc-mailform"> | </fieldset>
1620 editIcons = tt_content: bodytext, pages, subheader
1621 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.form
1623 prefixComment = 2 | Mail form inserted:
1628 # ******************
1630 # ******************
1631 tt_content.search = COA
1632 tt_content.search.10 = < lib.stdheader
1634 tt_content.search.20 = SEARCHRESULT
1635 tt_content.search.20 {
1636 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
1637 languageField.tt_content = sys_language_uid
1642 10.field = pages_title
1643 10.htmlSpecialChars = 1
1645 parameter.field = uid
1646 target < lib.parseTarget
1648 target.override = {$styles.content.searchresult.resultTarget}
1649 additionalParams.data = register:SWORD_PARAMS
1650 additionalParams.required = 1
1651 additionalParams.wrap = &no_cache=1
1653 10.htmlSpecialChars = 1
1654 10.wrap = <h3 class="csc-searchResultHeader">|</h3>
1659 10.field = tt_content_bodytext
1661 10.htmlSpecialChars = 1
1663 20.stdWrap.crop = 200 | ...
1664 20.stdWrap.wrap = <p class="csc-searchResult">|</p>
1669 wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT###
1672 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.resultRange
1673 10.wrap = <td class="csc-searchResultRange"><p>|</p></td>
1676 20.value = ###PREV### ###NEXT###
1677 20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td>
1683 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.emptySearch
1684 10.wrap = <h3 class="csc-noSearchResultMsg">|</h3>
1688 next.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultNext
1691 prev.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultPrev
1693 target < lib.parseTarget
1695 target.override = {$styles.content.searchresult.target}
1699 stdWrap.prefixComment = 2 | Search result:
1703 tt_content.search.30 < tt_content.mailform.20
1704 tt_content.search.30 {
1705 goodMess = {$styles.content.searchform.goodMess}
1710 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchWord
1711 10.type = sword=input
1712 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchIn
1713 20.type = scols=select
1715 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.headersKeywords
1716 10.value = pages.title-subtitle-keywords-description:tt_content.header
1717 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.pageContent
1718 20.value = tt_content.header-bodytext-imagecaption
1720 30.type = stype=hidden
1722 40.type = submit=submit
1723 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchButton
1727 locationData = HTTP_POST_VARS
1730 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-searchform"> | </table>
1732 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.search
1734 prefixComment = 2 | Search form inserted:
1742 tt_content.menu = COA
1744 10 = < lib.stdheader
1748 key.field = menu_type
1750 # "Menu of these pages"
1754 special.value.field = pages
1759 if.isTrue.field = accessibility_bypass
1763 accessibility_bypass_text = TEXT
1764 accessibility_bypass_text {
1765 field = accessibility_bypass_text
1775 dataWrap = sorting>{field:sorting}
1777 languageField = sys_language_uid
1783 data = LLL:EXT:css_styled_content/pi1/locallang.xml:menu.bypassNavigation
1784 override.data = register:accessibility_bypass_text
1786 htmlSpecialChars = 1
1795 wrap = <li class="csc-nav-bypass">|</li>
1798 30 = RESTORE_REGISTER
1800 outerWrap = <ul class="csc-menu csc-menu-def">|</ul>
1805 target < lib.parseTarget
1807 target.override = {$PAGE_TARGET}
1809 stdWrap.htmlSpecialChars = 1
1810 wrapItemAndSub = <li>|</li>
1811 ATagTitle.field = description // title
1816 # "Menu of subpages to these pages"
1821 outerWrap = <ul class="csc-menu csc-menu-1">|</ul>
1825 # "Sitemap - liststyle"
1828 stdWrap < tt_content.menu.20.default.stdWrap
1830 outerWrap = <div class="csc-sitemap">|</div>
1834 target < lib.parseTarget
1836 target.override = {$PAGE_TARGET}
1840 stdWrap.htmlSpecialChars = 1
1841 wrapItemAndSub = <li>|</li>
1842 ATagTitle.field = description // title
1853 # "Section index (pagecontent w/Index checked - liststyle)"
1861 isFalse.field = pages
1867 outerWrap = <ul class="csc-menu csc-menu-3">|</ul>
1872 sectionIndex.type = header
1873 NO.wrapItemAndSub = <li class="csc-section">|</li>
1877 # "Menu of subpages to these pages (with abstract)"
1881 prepend.renderObj.wrap = <dt class="csc-nav-bypass">|</dt><dd> </dd>
1882 outerWrap = <dl class="csc-menu csc-menu-4">|</dl>
1886 linkWrap = <dt>|</dt>
1890 data = field : abstract // field : description // field : subtitle
1891 htmlSpecialChars = 1
1897 ATagTitle.field = description // title
1901 # "Recently updated pages"
1905 outerWrap = <ul class="csc-menu csc-menu-5">|</ul>
1910 excludeNoSearchPages = 1
1914 # "Related pages (based on keywords)"
1918 outerWrap = <ul class="csc-menu csc-menu-6">|</ul>
1922 excludeNoSearchPages = 1
1926 # "Menu of subpages to these pages + sections - liststyle"
1930 outerWrap = <ul class="csc-menu csc-menu-7">|</ul>
1936 sectionIndex.type = header
1938 NO.wrapItemAndSub = <li class="csc-section">|</li>
1942 # "Sitemaps of selected pages - liststyle"
1946 special.value.field = pages
1949 # Menu of categorized pages
1952 special = categories
1953 special.value.field = selected_categories
1954 special.sorting = title
1957 outerWrap = <ul class="csc-menu csc-menu-9">|</ul>
1968 field = accessibility_title
1969 htmlSpecialChars = 1
1970 dataWrap = <map id="map{field:uid}" title="|">
1972 override = <map name="map{field:uid}" title="|">
1975 isFalse.data = TSFE:xhtmlDoctype
1988 field = accessibility_title
1992 editIcons = tt_content: menu_type, pages
1993 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.menuSitemap
1995 prefixComment = 2 | Menu/Sitemap element:
2004 # Should be a complete copy from the old static template "content (default)"
2005 tt_content.shortcut = COA
2006 tt_content.shortcut {
2008 20.key.field = layout
2011 source.field = records
2012 tables = {$content.shortcut.tables}
2016 source.field = records
2017 tables = {$content.shortcut.tables}
2021 editIcons = tt_content: records
2022 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.recordList
2024 prefixComment = 2 | Inclusion of other records (by reference):
2032 # Should be a complete copy from the old static template "content (default)" (except "lib.stdheader")
2033 tt_content.list = COA
2035 10 = < lib.stdheader
2038 20.key.field = list_type
2041 editIcons = tt_content: list_type, layout, select_key, pages [recursive]
2042 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.plugin
2044 prefixComment = 2 | Plugin inserted:
2052 tt_content.div = TEXT
2057 isTrue.data = TSFE:xhtmlDoctype
2059 wrap = <div class="divider">|</div>
2060 prefixComment = 2 | Div element
2067 # This truely IS a content object, launched from inside the PHP class of course.
2068 # Should be a complete copy from the old static template "content (default)"
2069 tt_content.html = TEXT
2073 editIcons = tt_content: pages
2074 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.html
2076 prefixComment = 2 | Raw HTML content:
2081 # Default error msg:
2083 tt_content.default = TEXT
2084 tt_content.default {
2086 wrap = <p style="background-color: yellow;"><b>ERROR:</b> Content Element type "|" has no rendering definition!</p>
2088 prefixComment = 2 | Unknown element message:
2091 # *********************************************************************
2093 # *********************************************************************
2101 plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE (
2103 .csc-header-alignment-center { text-align: center; }
2104 .csc-header-alignment-right { text-align: right; }
2105 .csc-header-alignment-left { text-align: left; }
2107 /* Clear floats after csc-textpic and after csc-textpic-imagerow */
2108 div.csc-textpic, div.csc-textpic div.csc-textpic-imagerow, ul.csc-uploads li { overflow: hidden; }
2110 /* Set padding for tables */
2111 div.csc-textpic .csc-textpic-imagewrap table { border-collapse: collapse; border-spacing: 0; }
2112 div.csc-textpic .csc-textpic-imagewrap table tr td { padding: 0; vertical-align: top; }
2114 /* Settings for figure and figcaption (HTML5) */
2115 div.csc-textpic .csc-textpic-imagewrap figure, div.csc-textpic figure.csc-textpic-imagewrap { margin: 0; display: table; }
2118 figcaption.csc-textpic-caption { display: table-caption; }
2119 .csc-textpic-caption { text-align: left; caption-side: bottom; }
2120 div.csc-textpic-caption-c .csc-textpic-caption, .csc-textpic-imagewrap .csc-textpic-caption-c { text-align: center; }
2121 div.csc-textpic-caption-r .csc-textpic-caption, .csc-textpic-imagewrap .csc-textpic-caption-r { text-align: right; }
2122 div.csc-textpic-caption-l .csc-textpic-caption, .csc-textpic-imagewrap .csc-textpic-caption-l { text-align: left; }
2124 /* Float the columns */
2125 div.csc-textpic div.csc-textpic-imagecolumn { float: left; }
2127 /* Border just around the image */
2128 {$styles.content.imgtext.borderSelector} {
2129 border: {$styles.content.imgtext.borderThick}px solid {$styles.content.imgtext.borderColor};
2130 padding: {$styles.content.imgtext.borderSpace}px {$styles.content.imgtext.borderSpace}px;
2133 div.csc-textpic .csc-textpic-imagewrap img { border: none; display: block; }
2135 /* Space below each image (also in-between rows) */
2136 div.csc-textpic .csc-textpic-imagewrap .csc-textpic-image { margin-bottom: {$styles.content.imgtext.rowSpace}px; }
2137 div.csc-textpic .csc-textpic-imagewrap .csc-textpic-imagerow-last .csc-textpic-image { margin-bottom: 0; }
2139 /* colSpace around image columns, except for last column */
2140 div.csc-textpic-imagecolumn, td.csc-textpic-imagecolumn .csc-textpic-image { margin-right: {$styles.content.imgtext.colSpace}px; }
2141 div.csc-textpic-imagecolumn.csc-textpic-lastcol, td.csc-textpic-imagecolumn.csc-textpic-lastcol .csc-textpic-image { margin-right: 0; }
2143 /* Add margin from image-block to text (in case of "Text w/ images") */
2144 div.csc-textpic-intext-left .csc-textpic-imagewrap,
2145 div.csc-textpic-intext-left-nowrap .csc-textpic-imagewrap {
2146 margin-right: {$styles.content.imgtext.textMargin}px;
2148 div.csc-textpic-intext-right .csc-textpic-imagewrap,
2149 div.csc-textpic-intext-right-nowrap .csc-textpic-imagewrap {
2150 margin-left: {$styles.content.imgtext.textMargin}px;
2153 /* Positioning of images: */
2155 /* Center (above or below) */
2156 div.csc-textpic-center .csc-textpic-imagewrap, div.csc-textpic-center figure.csc-textpic-imagewrap { overflow: hidden; }
2157 div.csc-textpic-center .csc-textpic-center-outer { position: relative; float: right; right: 50%; }
2158 div.csc-textpic-center .csc-textpic-center-inner { position: relative; float: right; right: -50%; }
2160 /* Right (above or below) */
2161 div.csc-textpic-right .csc-textpic-imagewrap { float: right; }
2162 div.csc-textpic-right div.csc-textpic-text { clear: right; }
2164 /* Left (above or below) */
2165 div.csc-textpic-left .csc-textpic-imagewrap { float: left; }
2166 div.csc-textpic-left div.csc-textpic-text { clear: left; }
2168 /* Left (in text) */
2169 div.csc-textpic-intext-left .csc-textpic-imagewrap { float: left; }
2171 /* Right (in text) */
2172 div.csc-textpic-intext-right .csc-textpic-imagewrap { float: right; }
2174 /* Right (in text, no wrap around) */
2175 div.csc-textpic-intext-right-nowrap .csc-textpic-imagewrap { float: right; }
2177 /* Left (in text, no wrap around) */
2178 div.csc-textpic-intext-left-nowrap .csc-textpic-imagewrap { float: left; }
2180 div.csc-textpic div.csc-textpic-imagerow-last, div.csc-textpic div.csc-textpic-imagerow-none div.csc-textpic-last { margin-bottom: 0; }
2182 /* Browser fixes: */
2184 /* Fix for unordered and ordered list with image "In text, left" */
2185 .csc-textpic-intext-left ol, .csc-textpic-intext-left ul { padding-left: 40px; overflow: auto; }
2188 ul.csc-uploads { padding: 0; }
2189 ul.csc-uploads li { list-style: none outside none; margin: 1em 0; }
2190 ul.csc-uploads img { float: left; padding-right: 1em; vertical-align: top; }
2191 ul.csc-uploads span { display: block; }
2192 ul.csc-uploads span.csc-uploads-fileName { text-decoration: underline; }
2194 /* Table background colors: */
2196 table.contenttable-color-1 { background-color: {$styles.content.table.backgroundColor.1}; }
2197 table.contenttable-color-2 { background-color: {$styles.content.table.backgroundColor.2}; }
2198 table.contenttable-color-240 { background-color: {$styles.content.table.backgroundColor.240}; }
2199 table.contenttable-color-241 { background-color: {$styles.content.table.backgroundColor.241}; }
2200 table.contenttable-color-242 { background-color: {$styles.content.table.backgroundColor.242}; }
2201 table.contenttable-color-243 { background-color: {$styles.content.table.backgroundColor.243}; }
2202 table.contenttable-color-244 { background-color: {$styles.content.table.backgroundColor.244}; }