[BUGFIX] Content rendering: Definition lists in RTE are wrapped in p
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / static / setup.txt
1 # ***************************************************************************
2 # Notice: "styles." (and "temp.") objects are UNSET after template parsing!
3 # Use "lib." for persisting storage of objects.
4 # ***************************************************************************
5
6 # Clear out any constants in this reserved room!
7 styles.content >
8
9 # get content
10 styles.content.get = CONTENT
11 styles.content.get {
12 table = tt_content
13 select.orderBy = sorting
14 select.where = colPos=0
15 select.languageField = sys_language_uid
16 }
17
18 # get content, left
19 styles.content.getLeft < styles.content.get
20 styles.content.getLeft.select.where = colPos=1
21
22 # get content, right
23 styles.content.getRight < styles.content.get
24 styles.content.getRight.select.where = colPos=2
25
26 # get content, margin
27 styles.content.getBorder < styles.content.get
28 styles.content.getBorder.select.where = colPos=3
29
30 # get news
31 styles.content.getNews < styles.content.get
32 styles.content.getNews.select.pidInList = {$styles.content.getNews.newsPid}
33
34 # Edit page object:
35 styles.content.editPanelPage = COA
36 styles.content.editPanelPage {
37 10 = EDITPANEL
38 10 {
39 allow = toolbar,move,hide
40 label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.page
41 label.wrap = |&nbsp;<b>%s</b>
42 }
43 }
44
45
46
47
48
49
50
51
52
53
54
55 # *********************************************************************
56 # "lib." objects are preserved from unsetting after template parsing
57 # *********************************************************************
58
59 # Creates a condition for targets. Not allowed in XHTML except for xhtml frames DTD
60 lib.parseTarget {
61 override =
62 override.if {
63 isTrue.data = TSFE:dtdAllowsFrames
64 }
65 }
66
67 # Creates persistent ParseFunc setup for non-HTML content. This is recommended to use (as a reference!)
68 lib.parseFunc {
69 makelinks = 1
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
75 tags {
76 link = TEXT
77 link {
78 current = 1
79 typolink.parameter.data = parameters : allParams
80 typolink.extTarget < lib.parseTarget
81 typolink.extTarget =
82 typolink.extTarget.override = {$styles.content.links.extTarget}
83 typolink.target < lib.parseTarget
84 typolink.target =
85 typolink.target.override = {$styles.content.links.target}
86 parseFunc.constants =1
87 }
88 }
89 allowTags = {$styles.content.links.allowTags}
90 denyTags = *
91 sword = <span class="csc-sword">|</span>
92 constants = 1
93
94 nonTypoTagStdWrap.HTMLparser = 1
95 nonTypoTagStdWrap.HTMLparser {
96 keepNonMatchedTags = 1
97 htmlSpecialChars = 2
98 }
99 }
100
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
103
104 # Creates persistent ParseFunc setup for RTE content (which is mainly HTML) based on the "ts_css" transformation.
105 lib.parseFunc_RTE < lib.parseFunc
106 lib.parseFunc_RTE {
107 // makelinks >
108 # Processing <table> and <blockquote> blocks separately
109 externalBlocks = article, aside, blockquote, div, dd, dl, footer, header, nav, ol, section, table, ul
110 externalBlocks {
111 # The blockquote content is passed into parseFunc again...
112 blockquote.stripNL=1
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;"
116
117 ol.stripNL=1
118 ol.stdWrap.parseFunc = < lib.parseFunc
119
120 ul.stripNL=1
121 ul.stdWrap.parseFunc = < lib.parseFunc
122
123 table.stripNL=1
124 table.stdWrap.HTMLparser = 1
125 table.stdWrap.HTMLparser.tags.table.fixAttrib.class {
126 default = contenttable
127 always = 1
128 list = contenttable
129 }
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
134 default.stdWrap {
135 parseFunc =< lib.parseFunc_RTE
136 parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag =
137 }
138 addChr10BetweenParagraphs=1
139 }
140 div.stripNL = 1
141 div.callRecursive = 1
142
143 article < .div
144 aside < .div
145 footer < .div
146 header < .div
147 nav < .div
148 section < .div
149
150 # Definition list processing
151 dl < .div
152 dd < .div
153 }
154 nonTypoTagStdWrap.encapsLines {
155 encapsTagList = p,pre,h1,h2,h3,h4,h5,h6,hr,dt
156 remapTag.DIV = P
157 nonWrappedTag = P
158 innerStdWrap_all.ifBlank = &nbsp;
159 addAttributes.P.class = bodytext
160 addAttributes.P.class.setOnly=blank
161 }
162 nonTypoTagStdWrap.HTMLparser = 1
163 nonTypoTagStdWrap.HTMLparser {
164 keepNonMatchedTags = 1
165 htmlSpecialChars = 2
166 }
167 }
168
169
170 # Content header:
171 lib.stdheader = COA
172 lib.stdheader {
173
174 # Create class attribute for <Hx> tags
175 3 = LOAD_REGISTER
176 3 {
177 headerClass {
178 cObject = COA
179 cObject {
180 # Create alignment class for <Hx> tags
181 10 = TEXT
182 10 {
183 field = header_position
184 required = 1
185 noTrimWrap = |csc-header-alignment-| |
186 }
187 # Create "csc-firstHeader" class for <Hx> tags
188 20 = TEXT
189 20 {
190 value = csc-firstHeader
191 if {
192 value = 1
193 equals.data = cObj:parentRecordNumber
194 }
195 }
196 stdWrap {
197 trim = 1
198 noTrimWrap = | class="|"|
199 required = 1
200 }
201 }
202 }
203 }
204
205 # Date format (not HTML5)
206 5 = TEXT
207 5 {
208 field = date
209 if {
210 isTrue {
211 field = date
212 }
213 isFalse = 1
214 isFalse {
215 if {
216 value = html5
217 equals.data = TSFE:config|config|doctype
218 }
219 }
220 }
221 strftime = %x
222 wrap = <p class="csc-header-date">|</p>
223 prefixComment = 2 | Header date:
224 }
225
226 # HTML5 <hgroup> open
227 7 = TEXT
228 7 {
229 value = <hgroup>
230 fieldRequired = subheader
231 if {
232 value = html5
233 equals.data = TSFE:config|config|doctype
234 }
235 }
236
237 # This CASE cObject renders the header content:
238 # currentValue is set to the header data, possibly wrapped in link-tags.
239 10 = CASE
240 10.setCurrent {
241 field = header
242 htmlSpecialChars = 1
243 typolink.parameter.field = header_link
244 }
245 10.key.field = header_layout
246 10.key.ifEmpty = {$content.defaultHeaderType}
247 10.key.ifEmpty.override.data = register: defaultHeaderType
248
249 10.1 = TEXT
250 10.1.current = 1
251 10.1.dataWrap = <h1{register:headerClass}>|</h1>
252
253 10.2 < .10.1
254 10.2.dataWrap = <h2{register:headerClass}>|</h2>
255
256 10.3 < .10.1
257 10.3.dataWrap = <h3{register:headerClass}>|</h3>
258
259 10.4 < .10.1
260 10.4.dataWrap = <h4{register:headerClass}>|</h4>
261
262 10.5 < .10.1
263 10.5.dataWrap = <h5{register:headerClass}>|</h5>
264
265 # HTML5 subheader
266 20 = CASE
267 20 {
268 key {
269 field = header_layout
270 }
271
272 default = TEXT
273 default {
274 wrap = <h2>|</h2>
275 htmlSpecialChars = 1
276 field = subheader
277 }
278
279 1 < .default
280
281 2 < .default
282 2.wrap = <h3>|</h3>
283
284 3 < .default
285 3.wrap = <h4>|</h4>
286
287 4 < .default
288 4.wrap = <h5>|</h5>
289
290 5 < .default
291 5.wrap = <h6>|</h6>
292
293 if {
294 isTrue {
295 field = subheader
296 }
297 value = html5
298 equals.data = TSFE:config|config|doctype
299 }
300 }
301
302 # HTML5 <hgroup> close
303 30 < lib.stdheader.7
304 30 {
305 value = </hgroup>
306 }
307
308 # HTML5 Date
309 40 = COA
310 40 {
311
312 stdWrap {
313 wrap = <p class="csc-header-date">|</p>
314 innerWrap {
315 cObject = COA
316 cObject {
317 10 = TEXT
318 10 {
319 value = <time
320 }
321 20 = TEXT
322 20 {
323 noTrimWrap = | datetime="|"|
324 field = date
325 strftime = %Y-%m-%d
326 }
327 30 = TEXT
328 30 {
329 value = >|</time>
330 }
331 }
332 }
333 required = 1
334 }
335 10 = TEXT
336 10 {
337 field = date
338 strftime = %B %e, %Y
339 }
340 if {
341 isTrue {
342 field = date
343 }
344 value = html5
345 equals.data = TSFE:config|config|doctype
346 }
347 }
348
349 # Pops the used registers off the stack:
350 98 = RESTORE_REGISTER
351
352 # Post-processing:
353 stdWrap.fieldRequired = header
354 stdWrap.if {
355 equals.field = header_layout
356 value = 100
357 negate = 1
358 }
359
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
363
364 stdWrap {
365 dataWrap = <div class="csc-header csc-header-n{cObj:parentRecordNumber}">|</div>
366 dataWrap {
367 override = <header class="csc-header csc-header-n{cObj:parentRecordNumber}">|</header>
368 override {
369 if {
370 value = html5
371 equals.data = TSFE:config|config|doctype
372 }
373 }
374 }
375 }
376 stdWrap.prefixComment = 2 | Header:
377 }
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
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
397
398
399 #**********************************
400 # tt_content is started
401 #**********************************
402 tt_content >
403 tt_content = CASE
404 tt_content.key.field = CType
405 tt_content.stdWrap {
406 innerWrap.cObject = CASE
407 innerWrap.cObject {
408 key.field = section_frame
409
410 default = COA
411 default {
412 10 = TEXT
413 10 {
414 cObject = CASE
415 cObject {
416 key.field = CType
417
418 default = TEXT
419 default {
420 value = <div id="c{field:uid}"
421 }
422
423 div = TEXT
424 div {
425 value = <div
426 }
427
428 menu < .default
429 menu {
430 override = <nav id="c{field:uid}"
431 override {
432 if {
433 value = html5
434 equals.data = TSFE:config|config|doctype
435 }
436 }
437 }
438 }
439 insertData = 1
440 }
441
442 20 = COA
443 20 {
444 # Create default class for content
445 10 = TEXT
446 10 {
447 value = csc-default
448 required = 1
449 noTrimWrap = || |
450 }
451 # Create class for space before content
452 20 = USER
453 20 {
454 userFunc = tx_cssstyledcontent_pi1->renderSpace
455 space = before
456 constant = {$content.spaceBefore}
457 stdWrap {
458 noTrimWrap = |csc-space-before-| |
459 }
460 }
461 # Create class for space after content
462 30 = USER
463 30 {
464 userFunc = tx_cssstyledcontent_pi1->renderSpace
465 space = after
466 constant = {$content.spaceAfter}
467 stdWrap {
468 noTrimWrap = |csc-space-after-| |
469 }
470 }
471 stdWrap {
472 trim = 1
473 noTrimWrap = | class="|"|
474 required = 1
475 }
476 }
477
478 30 = TEXT
479 30 {
480 cObject = CASE
481 cObject {
482 key.field = CType
483
484 default = TEXT
485 default {
486 value = >|</div>
487 }
488
489 menu < .default
490 menu {
491 override = >|</nav>
492 override {
493 if {
494 value = html5
495 equals.data = TSFE:config|config|doctype
496 }
497 }
498 }
499 }
500 }
501 }
502
503 1 =< tt_content.stdWrap.innerWrap.cObject.default
504 1.20.10.value = csc-frame csc-frame-invisible
505
506 5 =< tt_content.stdWrap.innerWrap.cObject.default
507 5.20.10.value = csc-frame csc-frame-rulerBefore
508
509 6 =< tt_content.stdWrap.innerWrap.cObject.default
510 6.20.10.value = csc-frame csc-frame-rulerAfter
511
512 10 =< tt_content.stdWrap.innerWrap.cObject.default
513 10.20.10.value = csc-frame csc-frame-indent
514
515 11 =< tt_content.stdWrap.innerWrap.cObject.default
516 11.20.10.value = csc-frame csc-frame-indent3366
517
518 12 =< tt_content.stdWrap.innerWrap.cObject.default
519 12.20.10.value = csc-frame csc-frame-indent6633
520
521 20 =< tt_content.stdWrap.innerWrap.cObject.default
522 20.20.10.value = csc-frame csc-frame-frame1
523
524 21 =< tt_content.stdWrap.innerWrap.cObject.default
525 21.20.10.value = csc-frame csc-frame-frame2
526
527 66 = COA
528 66 {
529 10 = TEXT
530 10 {
531 value = <a id="c{field:uid}"></a>
532 insertData = 1
533 }
534 # Create div with class for space before content
535 20 = COA
536 20 {
537 10 = USER
538 10 {
539 userFunc = tx_cssstyledcontent_pi1->renderSpace
540 space = before
541 constant = {$content.spaceBefore}
542 stdWrap {
543 wrap = csc-space-before-|
544 }
545 }
546 stdWrap {
547 wrap = <div class="|"></div>
548 required = 1
549 }
550 }
551
552 30 = TEXT
553 30 {
554 value = |
555 }
556
557 # Create div with class for space after content
558 40 < .20
559 40 {
560 10 {
561 space = after
562 constant = {$content.spaceAfter}
563 stdWrap {
564 wrap = csc-space-after-|
565 }
566 }
567 }
568 }
569 }
570
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
574
575 prepend = TEXT
576 prepend.dataWrap = <a id="c{field:_LOCALIZED_UID}"></a>
577 prepend.if.isTrue.field = _LOCALIZED_UID
578
579 editPanel = 1
580 editPanel {
581 allow = move,new,edit,hide,delete
582 line = 5
583 label = %s
584 onlyCurrentPid = 1
585 previewBorder = 4
586 edit.displayRecord = 1
587 }
588
589 prefixComment = 1 | CONTENT ELEMENT, uid:{field:uid}/{field:CType}
590 }
591
592
593
594 # *****************
595 # CType: header
596 # *****************
597 # See Object path "lib.stdheader"
598 tt_content.header = COA
599 tt_content.header {
600 10 = < lib.stdheader
601
602 20 = TEXT
603 20 {
604 field = subheader
605 required = 1
606
607 dataWrap = <p class="csc-subheader csc-subheader-{field:layout}">|</p>
608 htmlSpecialChars = 1
609
610 if {
611 value = html5
612 equals.data = TSFE:config|config|doctype
613 negate = 1
614 }
615
616 editIcons = tt_content:subheader,layout
617 editIcons.beforeLastTag = 1
618 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.subheader
619
620 prefixComment = 2 | Subheader:
621 }
622 }
623
624
625
626 # *****************
627 # CType: text
628 # *****************
629 tt_content.text = COA
630 tt_content.text {
631 10 = < lib.stdheader
632
633 20 = TEXT
634 20 {
635 field = bodytext
636 required = 1
637
638 parseFunc = < lib.parseFunc_RTE
639
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
643
644 prefixComment = 2 | Text:
645 }
646 }
647
648
649
650 # *****************
651 # CType: image
652 # *****************
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
659
660 # Image source
661 imgList.field = image
662 imgPath = uploads/pics/
663
664 # Single image rendering
665 imgObjNum = 1
666 1 {
667 file.import.current = 1
668 file.width.field = imagewidth
669 imageLinkWrap = 1
670 imageLinkWrap {
671 bodyTag = <body style="margin:0; background:#fff;">
672 wrap = <a href="javascript:close();"> | </a>
673 width = {$styles.content.imgtext.linkWrap.width}
674 height = {$styles.content.imgtext.linkWrap.height}
675 effects = {$styles.content.imgtext.linkWrap.effects}
676
677 JSwindow = 1
678 JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
679 JSwindow.if.isFalse = {$styles.content.imgtext.linkWrap.lightboxEnabled}
680
681 directImageLink = {$styles.content.imgtext.linkWrap.lightboxEnabled}
682
683 enable.field = image_zoom
684 enable.ifEmpty.typolink.parameter.field = image_link
685 enable.ifEmpty.typolink.parameter.listNum.splitChar = 10
686 enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
687 enable.ifEmpty.typolink.returnLast = url
688
689 typolink.parameter.field = image_link
690 typolink.parameter.listNum.splitChar = 10
691 typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
692
693 typolink.target < lib.parseTarget
694 typolink.target =
695 typolink.target.override = {$styles.content.links.target}
696
697 typolink.extTarget < lib.parseTarget
698 typolink.extTarget =
699 typolink.extTarget.override = {$styles.content.links.extTarget}
700
701 linkParams.ATagParams.dataWrap = class="{$styles.content.imgtext.linkWrap.lightboxCssClass}" rel="{$styles.content.imgtext.linkWrap.lightboxRelAttribute}"
702 }
703
704 altText = TEXT
705 altText {
706 field = altText
707 stripHtml = 1
708 split.token.char = 10
709 split.token.if.isTrue = {$styles.content.imgtext.imageTextSplit}
710 split.returnKey.data = register : IMAGE_NUM_CURRENT
711 }
712
713 params =
714 params {
715 override {
716 dataWrap = aria-describedby="csc-longdesc-{field:uid}-{register:IMAGE_NUM_CURRENT}"
717 if {
718 isTrue {
719 cObject = TEXT
720 cObject {
721 field = imagecaption
722 required = 1
723 parseFunc =< lib.parseFunc
724 split {
725 token {
726 char = 10
727 if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
728 }
729 returnKey.data = register : IMAGE_NUM_CURRENT
730 }
731 }
732 }
733 isFalse = 1
734 isFalse {
735 if {
736 isFalse {
737 cObject = TEXT
738 cObject {
739 field = longdescURL
740 split {
741 token {
742 char = 10
743 }
744 returnKey.data = register : IMAGE_NUM_CURRENT
745 }
746 }
747 }
748 }
749 }
750 isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
751 value = html5
752 equals.data = TSFE:config|config|doctype
753 }
754 }
755 }
756
757 titleText < .altText
758 titleText.field = titleText
759
760 longdescURL {
761 parameter {
762 field = longdescURL
763 split {
764 token {
765 char = 10
766 }
767 returnKey.data = register : IMAGE_NUM_CURRENT
768 }
769 }
770 }
771
772 emptyTitleHandling = {$styles.content.imgtext.emptyTitleHandling}
773 titleInLink = {$styles.content.imgtext.titleInLink}
774 titleInLinkAndImg = {$styles.content.imgtext.titleInLinkAndImg}
775 }
776
777 textPos.field = imageorient
778 maxW = {$styles.content.imgtext.maxW}
779 maxW.override.data = register:maxImageWidth
780 maxWInText = {$styles.content.imgtext.maxWInText}
781 maxWInText.override.data = register:maxImageWidthInText
782
783 equalH.field = imageheight
784
785 image_compression.field = image_compression
786 image_effects.field = image_effects
787
788 noRows.field = image_noRows
789
790 cols.field = imagecols
791 border.field = imageborder
792
793 caption {
794 1 = COA
795 1 {
796 1 = TEXT
797 1 {
798 field = imagecaption
799 required = 1
800 parseFunc =< lib.parseFunc
801 br = 1
802 trim = 1
803 split.token.char = 10
804 split.token.if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
805 split.returnKey.data = register : IMAGE_NUM_CURRENT
806 }
807 stdWrap {
808 required = 1
809 typolink {
810 parameter {
811 field = longdescURL
812 trim = 1
813 split {
814 token {
815 char = 10
816 }
817 returnKey.data = register : IMAGE_NUM_CURRENT
818 }
819 if {
820 value = html5
821 equals.data = TSFE:config|config|doctype
822 }
823 }
824 ATagParams {
825 dataWrap = id="csc-longdesc-{field:uid}-{register:IMAGE_NUM_CURRENT}"
826 }
827 target = {$styles.content.links.target}
828 extTarget = {$styles.content.links.extTarget}
829 }
830 }
831 }
832 }
833
834 # captionSplit is deprecated, use imageTextSplit instead
835 captionSplit = {$styles.content.imgtext.captionSplit}
836 captionAlign.field = imagecaption_position
837 # caption/alttext/title/longdescURL splitting
838 imageTextSplit = {$styles.content.imgtext.imageTextSplit}
839
840 borderCol = {$styles.content.imgtext.borderColor}
841 borderThick = {$styles.content.imgtext.borderThick}
842 borderClass = {$styles.content.imgtext.borderClass}
843 colSpace = {$styles.content.imgtext.colSpace}
844 rowSpace = {$styles.content.imgtext.rowSpace}
845 textMargin = {$styles.content.imgtext.textMargin}
846
847 borderSpace = {$styles.content.imgtext.borderSpace}
848 separateRows = {$styles.content.imgtext.separateRows}
849 addClasses =
850 addClassesCol =
851 addClassesCol.ifEmpty = csc-textpic-firstcol csc-textpic-lastcol
852 addClassesCol.override = csc-textpic-firstcol |*| |*| csc-textpic-lastcol
853 addClassesCol.override.if {
854 isGreaterThan.field = imagecols
855 value = 1
856 }
857
858 addClassesImage = csc-textpic-first |*| |*| csc-textpic-last
859
860 #
861 imageStdWrap.dataWrap = <div class="csc-textpic-imagewrap" style="width:{register:totalwidth}px;"> | </div>
862 imageStdWrapNoWidth.wrap = <div class="csc-textpic-imagewrap"> | </div>
863
864 # if noRows is set, wrap around each column:
865 imageColumnStdWrap.dataWrap = <div class="csc-textpic-imagecolumn" style="width:{register:columnwidth}px;"> | </div>
866
867 layout = CASE
868 layout {
869 key.field = imageorient
870 # above-center
871 default = TEXT
872 default.value = <div class="csc-textpic csc-textpic-center csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div>
873 # above-right
874 1 = TEXT
875 1.value = <div class="csc-textpic csc-textpic-right csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div>
876 # above-left
877 2 = TEXT
878 2.value = <div class="csc-textpic csc-textpic-left csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div>
879 # below-center
880 8 = TEXT
881 8.value = <div class="csc-textpic csc-textpic-center csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div>
882 # below-right
883 9 = TEXT
884 9.value = <div class="csc-textpic csc-textpic-right csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div>
885 # below-left
886 10 = TEXT
887 10.value = <div class="csc-textpic csc-textpic-left csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div>
888 # intext-right
889 17 = TEXT
890 17.value = <div class="csc-textpic csc-textpic-intext-right###CLASSES###">###IMAGES######TEXT###</div>
891 # intext-left
892 18 = TEXT
893 18.value = <div class="csc-textpic csc-textpic-intext-left###CLASSES###">###IMAGES######TEXT###</div>
894 # intext-right-nowrap
895 25 = TEXT
896 25.value = <div class="csc-textpic csc-textpic-intext-right-nowrap###CLASSES###">###IMAGES######TEXT###</div>
897 # intext-left-nowrap
898 26 = TEXT
899 26.value = <div class="csc-textpic csc-textpic-intext-left-nowrap###CLASSES###">###IMAGES######TEXT###</div>
900 }
901
902 rendering {
903 # Single image - No caption
904 singleNoCaption {
905 # Choose another rendering for special edge cases
906 fallbackRendering = COA
907 fallbackRendering {
908 # Single image - Caption
909 10 = TEXT
910 10 {
911 if {
912 isTrue.field = imagecaption
913 value = 1
914 equals.data = register:imageCount
915 }
916 value = singleCaption
917 }
918
919 # Multiple images and split caption
920 20 = TEXT
921 20 {
922 if {
923 value = 1
924 isGreaterThan.data = register:imageCount
925 isTrue.if.isFalse.data = register:renderGlobalCaption
926 isTrue.field = imagecaption
927 }
928 value = splitCaption
929 }
930
931 # Multiple images and one global caption
932 30 = TEXT
933 30 {
934 if {
935 value = 1
936 isGreaterThan.data = register:imageCount
937 isTrue.if.isTrue.data = register:renderGlobalCaption
938 isTrue.field = imagecaption
939 }
940 value = globalCaption
941 }
942
943 # Multiple images and no caption at all
944 40 = TEXT
945 40 {
946 if {
947 value = 1
948 isGreaterThan.data = register:imageCount
949 isFalse.field = imagecaption
950 }
951 value = noCaption
952 }
953 }
954 allStdWrap.wrap = <div class="csc-textpic-imagewrap"> | </div>
955 singleStdWrap {
956 wrap = <div class="csc-textpic-image###CLASSES###"> | </div>
957 wrap {
958 override = <figure class="csc-textpic-image###CLASSES###"> | </figure>
959 override {
960 if {
961 value = html5
962 equals.data = TSFE:config|config|doctype
963 }
964 }
965 }
966 }
967 rowStdWrap.wrap = |
968 noRowsStdWrap.wrap = |
969 lastRowStdWrap.wrap = |
970 columnStdWrap.wrap = |
971 imgTagStdWrap.wrap = |
972 editIconsStdWrap.wrap = <div> | </div>
973 caption.wrap = |
974 }
975 noCaption {
976 # Multiple images and no caption at all
977 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
978 allStdWrap.wrap = <div class="csc-textpic-imagewrap"> | </div>
979 singleStdWrap {
980 wrap = <div class="csc-textpic-image###CLASSES###"> | </div>
981 wrap {
982 override = <figure class="csc-textpic-image###CLASSES###"> | </figure>
983 }
984 }
985 rowStdWrap.wrap = <div class="csc-textpic-imagerow"> | </div>
986 noRowsStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-none"> | </div>
987 lastRowStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last"> | </div>
988 columnStdWrap.wrap = <div class="csc-textpic-imagecolumn###CLASSES###"> | </div>
989 }
990 singleCaption {
991 # Just one image with a caption
992 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
993 singleStdWrap {
994 wrap = <div class="csc-textpic-image###CLASSES###"><table>###CAPTION###<tbody><tr><td> | </td></tr></tbody></table></div>
995 wrap {
996 override = <figure class="csc-textpic-image###CLASSES###">|###CAPTION###</figure>
997 override {
998 if {
999 value = html5
1000 equals.data = TSFE:config|config|doctype
1001 }
1002 }
1003 }
1004 }
1005 caption {
1006 required = 1
1007 wrap = <caption class="csc-textpic-caption###CLASSES###"> | </caption>
1008 wrap {
1009 override = <figcaption class="csc-textpic-caption###CLASSES###"> | </figcaption>
1010 override {
1011 if {
1012 value = html5
1013 equals.data = TSFE:config|config|doctype
1014 }
1015 }
1016 }
1017 }
1018 }
1019 splitCaption {
1020 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
1021 singleStdWrap {
1022 wrap = <div class="csc-textpic-image###CLASSES###"><table>###CAPTION###<tbody><tr><td> | </td></tr></tbody></table></div>
1023 wrap {
1024 override = <figure class="csc-textpic-image###CLASSES###">|###CAPTION###</figure>
1025 override {
1026 if {
1027 value = html5
1028 equals.data = TSFE:config|config|doctype
1029 }
1030 }
1031 }
1032 }
1033 rowStdWrap.wrap = <div class="csc-textpic-imagerow"> | </div>
1034 noRowsStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-none"> | </div>
1035 lastRowStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last"> | </div>
1036 columnStdWrap.wrap = <div class="csc-textpic-imagecolumn###CLASSES###"> | </div>
1037 caption {
1038 required = 1
1039 wrap = <caption class="csc-textpic-caption###CLASSES###"> | </caption>
1040 wrap {
1041 override = <figcaption class="csc-textpic-caption###CLASSES###"> | </figcaption>
1042 override {
1043 if {
1044 value = html5
1045 equals.data = TSFE:config|config|doctype
1046 }
1047 }
1048 }
1049 }
1050 }
1051 globalCaption {
1052 # Just one image without a caption
1053 fallbackRendering < tt_content.image.20.rendering.singleNoCaption.fallbackRendering.10
1054 allStdWrap {
1055 wrap = <div class="csc-textpic-imagewrap"><table>###CAPTION###<tbody> | </tbody></table></div>
1056 wrap {
1057 override = <figure class="csc-textpic-imagewrap"> | ###CAPTION###</figure>
1058 override {
1059 if {
1060 value = html5
1061 equals.data = TSFE:config|config|doctype
1062 }
1063 }
1064 }
1065 }
1066 singleStdWrap {
1067 wrap = <div class="csc-textpic-image###CLASSES###"> | </div>
1068 wrap {
1069 override = <div class="csc-textpic-image###CLASSES###"> | </div>
1070 }
1071 }
1072 rowStdWrap.wrap = <div class="csc-textpic-imagerow"> | </div>
1073 noRowsStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-none"> | </div>
1074 lastRowStdWrap.wrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last"> | </div>
1075 columnStdWrap.wrap = <div class="csc-textpic-imagecolumn###CLASSES###"> | </div>
1076 caption {
1077 required = 1
1078 wrap = <caption class="csc-textpic-caption"> | </caption>
1079 wrap {
1080 override = <figcaption class="csc-textpic-caption###CLASSES###"> | </figcaption>
1081 override {
1082 if {
1083 value = html5
1084 equals.data = TSFE:config|config|doctype
1085 }
1086 }
1087 }
1088 }
1089 }
1090 }
1091 renderMethod = singleNoCaption
1092
1093 editIcons = tt_content : image [imageorient|imagewidth|imageheight], [imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compression|image_effects|image_frames],imagecaption[imagecaption_position]
1094 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.images
1095
1096 caption.editIcons = tt_content : imagecaption[imagecaption_position]
1097 caption.editIcons.beforeLastTag=1
1098 caption.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.caption
1099
1100 stdWrap.prefixComment = 2 | Image block:
1101 }
1102
1103 # *****************
1104 # CType: textpic
1105 # *****************
1106 tt_content.textpic = COA
1107 tt_content.textpic {
1108 10 = COA
1109 10.if.value = 25
1110 10.if.isLessThan.field = imageorient
1111 10.10 = < lib.stdheader
1112
1113 20 = < tt_content.image.20
1114 20 {
1115 text.10 = COA
1116 text.10 {
1117 if.value = 24
1118 if.isGreaterThan.field = imageorient
1119 10 = < lib.stdheader
1120 10.stdWrap.dataWrap = <div class="csc-textpicHeader csc-textpicHeader-{field:imageorient}">|</div>
1121 }
1122 text.20 = < tt_content.text.20
1123 text.wrap = <div class="csc-textpic-text"> | </div>
1124 }
1125 }
1126
1127
1128
1129 # *****************
1130 # CType: bullet
1131 # *****************
1132 tt_content.bullets = COA
1133 tt_content.bullets {
1134 10 = < lib.stdheader
1135
1136 20 = TEXT
1137 20 {
1138 field = bodytext
1139 trim = 1
1140 split{
1141 token.char = 10
1142 cObjNum = |*|1|| 2|*|
1143 1.current = 1
1144 1.parseFunc =< lib.parseFunc
1145 1.wrap = <li class="odd">|</li>
1146
1147 2.current = 1
1148 2.parseFunc =< lib.parseFunc
1149 2.wrap = <li class="even">|</li>
1150 }
1151 dataWrap = <ul class="csc-bulletlist csc-bulletlist-{field:layout}">|</ul>
1152 editIcons = tt_content: bodytext, [layout]
1153 editIcons.beforeLastTag = 1
1154 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.bullets
1155
1156 prefixComment = 2 | Bullet list:
1157 }
1158 }
1159
1160
1161
1162 # *****************
1163 # CType: table
1164 # *****************
1165 # Rendered by a PHP function specifically written to handle CE tables. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
1166 tt_content.table = COA
1167 tt_content.table {
1168 10 = < lib.stdheader
1169
1170 20 = USER
1171 20.userFunc = tx_cssstyledcontent_pi1->render_table
1172 20.field = bodytext
1173
1174 20.color {
1175 default =
1176 1 = {$styles.content.table.backgroundColor.1}
1177 2 = {$styles.content.table.backgroundColor.2}
1178 200 =
1179 240 = {$styles.content.table.backgroundColor.240}
1180 241 = {$styles.content.table.backgroundColor.241}
1181 242 = {$styles.content.table.backgroundColor.242}
1182 243 = {$styles.content.table.backgroundColor.243}
1183 244 = {$styles.content.table.backgroundColor.244}
1184 }
1185 20.tableParams_0 {
1186 border =
1187 cellpadding =
1188 cellspacing =
1189 }
1190 20.tableParams_1 {
1191 border =
1192 cellpadding =
1193 cellspacing =
1194 }
1195 20.tableParams_2 {
1196 border =
1197 cellpadding =
1198 cellspacing =
1199 }
1200 20.tableParams_3 {
1201 border =
1202 cellpadding =
1203 cellspacing =
1204 }
1205 20.innerStdWrap.wrap = |
1206 20.innerStdWrap.parseFunc = < lib.parseFunc
1207
1208 20.stdWrap {
1209 editIcons = tt_content: cols, bodytext, [layout], [table_bgColor|table_border|table_cellspacing|table_cellpadding]
1210 editIcons.beforeLastTag = 1
1211 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.table
1212
1213 prefixComment = 2 | Table:
1214 }
1215 }
1216
1217
1218 # *****************
1219 # CType: uploads
1220 # *****************
1221 # Rendered by a PHP function specifically written to handle CE filelists. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
1222 tt_content.uploads = COA
1223 tt_content.uploads {
1224 10 = < lib.stdheader
1225
1226 20 = USER
1227 20 {
1228 userFunc = tx_cssstyledcontent_pi1->render_uploads
1229 field = media
1230 filePath.field = select_key
1231
1232 outerWrap = <ul class="csc-uploads csc-uploads-{field:layout}">|</ul>
1233 outerWrap {
1234 insertData = 1
1235 }
1236
1237 labelStdWrap.wrap = <span class="csc-uploads-fileName">|</span>
1238
1239 # Rendering for each file (e.g. rows of the table) as a cObject
1240 itemRendering = COA
1241 itemRendering {
1242 wrap.cObject = COA
1243 wrap.cObject {
1244 10 = LOAD_REGISTER
1245 10 {
1246 oddEvenClass = li-odd li-first |*| li-even || li-odd
1247 elementClass = csc-uploads-element csc-uploads-element-{register:fileExtension}
1248 elementClass.insertData = 1
1249 }
1250 20 = TEXT
1251 20 {
1252 value = <li class="{register:oddEvenClass} {register:elementClass}">|</li>
1253 insertData = 1
1254 }
1255 30 = RESTORE_REGISTER
1256 }
1257
1258 10 = TEXT
1259 10 {
1260 data = register:linkedIcon
1261 }
1262
1263 20 = TEXT
1264 20 {
1265 data = register:description
1266 htmlSpecialChars = 1
1267 wrap = <span class="csc-uploads-description">|</span>
1268 required = 1
1269 }
1270
1271 30 = TEXT
1272 30 {
1273 if.isTrue.field = filelink_size
1274 data = register:fileSize
1275 wrap = <span class="csc-uploads-fileSize">|</span>
1276 bytes = 1
1277 bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
1278 }
1279 }
1280 useSpacesInLinkText = 0
1281 stripFileExtensionFromLinkText = 0
1282
1283 linkProc {
1284 combinedLink = 1
1285
1286 target < lib.parseTarget
1287 target =
1288 target.override = {$styles.content.uploads.target}
1289
1290 title.htmlSpecialChars = 1
1291
1292 jumpurl = {$styles.content.uploads.jumpurl}
1293 jumpurl {
1294 secure = {$styles.content.uploads.jumpurl_secure}
1295 secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes}
1296 }
1297
1298 removePrependedNumbers = 1
1299
1300 iconCObject = IMAGE
1301 iconCObject {
1302 file {
1303 import.data = register : ICON_REL_PATH
1304 width = 150
1305 }
1306 }
1307 }
1308 filesize {
1309 bytes = 1
1310 bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
1311 }
1312 stdWrap {
1313 editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size, imagecaption
1314 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.filelist
1315
1316 prefixComment = 2 | File list:
1317 }
1318 }
1319 }
1320
1321 # ******************
1322 # CType: multimedia
1323 # ******************
1324 tt_content.multimedia = COA
1325 tt_content.multimedia {
1326 10 = < lib.stdheader
1327
1328 20 = MULTIMEDIA
1329 20.file.field = multimedia
1330 20.file.wrap = uploads/media/
1331 20.file.listNum = 0
1332 20.params.field = bodytext
1333
1334 20.stdWrap {
1335 editIcons = tt_content: multimedia, bodytext
1336 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1337
1338 prefixComment = 2 | Multimedia element:
1339 }
1340 }
1341
1342 # *****************
1343 # CType: swfobject
1344 # *****************
1345 tt_content.swfobject = COA
1346 tt_content.swfobject {
1347 10 = < lib.stdheader
1348
1349 20 = SWFOBJECT
1350 20 {
1351 file =
1352 width =
1353 height =
1354
1355 flexParams.field = pi_flexform
1356
1357 alternativeContent.field = bodytext
1358
1359 layout = ###SWFOBJECT###
1360
1361 video {
1362 player = {$styles.content.media.videoPlayer}
1363
1364 defaultWidth = {$styles.content.media.defaultVideoWidth}
1365 defaultHeight = {$styles.content.media.defaultVideoHeight}
1366
1367 default {
1368 params.quality = high
1369 params.menu = false
1370 params.allowScriptAccess = sameDomain
1371 params.allowFullScreen = true
1372 }
1373 mapping {
1374
1375 }
1376 }
1377
1378 audio {
1379 player = {$styles.content.media.audioPlayer}
1380
1381 defaultWidth = {$styles.content.media.defaultAudioWidth}
1382 defaultHeight = {$styles.content.media.defaultAudioHeight}
1383
1384 default {
1385 params.quality = high
1386 params.allowScriptAccess = sameDomain
1387 params.menu = false
1388 }
1389 mapping {
1390 flashvars.file = soundFile
1391 }
1392 }
1393
1394 }
1395 20.stdWrap {
1396 editIcons = tt_content: multimedia, imagewidth, imageheight, pi_flexform, bodytext
1397 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1398
1399 prefixComment = 2 | SWFobject element:
1400 }
1401 }
1402
1403 # *****************
1404 # CType: qtobject
1405 # *****************
1406 tt_content.qtobject = COA
1407 tt_content.qtobject {
1408 10 = < lib.stdheader
1409
1410 20 = QTOBJECT
1411 20 {
1412 file =
1413 width =
1414 height =
1415
1416 flexParams.field = pi_flexform
1417
1418 alternativeContent.field = bodytext
1419
1420 layout = ###QTOBJECT###
1421
1422 video {
1423 player = {$styles.content.media.videoPlayer}
1424
1425 defaultWidth = {$styles.content.media.defaultVideoWidth}
1426 defaultHeight = {$styles.content.media.defaultVideoHeight}
1427
1428 default {
1429 params.quality = high
1430 params.menu = false
1431 params.allowScriptAccess = sameDomain
1432 params.allowFullScreen = true
1433 }
1434 mapping {
1435
1436 }
1437 }
1438
1439 audio {
1440 player = {$styles.content.media.audioPlayer}
1441
1442 defaultWidth = {$styles.content.media.defaultAudioWidth}
1443 defaultHeight = {$styles.content.media.defaultAudioHeight}
1444
1445 default {
1446 params.quality = high
1447 params.allowScriptAccess = sameDomain
1448 params.menu = false
1449 }
1450 mapping {
1451 flashvars.file = soundFile
1452 }
1453 }
1454 }
1455 20.stdWrap {
1456 editIcons = tt_content: multimedia, imagewidth, imageheight, pi_flexform, bodytext
1457 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1458
1459 prefixComment = 2 | QTobject element:
1460 }
1461 }
1462
1463 # *****************
1464 # CType: media
1465 # *****************
1466 tt_content.media = COA
1467 tt_content.media {
1468 10 = < lib.stdheader
1469
1470 20 = MEDIA
1471 20 {
1472
1473 flexParams.field = pi_flexform
1474 alternativeContent < tt_content.text.20
1475 alternativeContent.field = bodytext
1476
1477 type = video
1478 renderType = auto
1479 allowEmptyUrl = 0
1480 forcePlayer = 1
1481
1482 fileExtHandler {
1483 default = MEDIA
1484 avi = MEDIA
1485 asf = MEDIA
1486 class = MEDIA
1487 wmv = MEDIA
1488 mp3 = SWF
1489 mp4 = SWF
1490 m4v = SWF
1491 swa = SWF
1492 flv = SWF
1493 swf = SWF
1494 mov = QT
1495 m4v = QT
1496 m4a = QT
1497 }
1498
1499 mimeConf.swfobject < tt_content.swfobject.20
1500 mimeConf.qtobject < tt_content.qtobject.20
1501
1502 }
1503 20.stdWrap {
1504 editIcons = tt_content: pi_flexform, bodytext
1505 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1506
1507 prefixComment = 2 | Media element:
1508 }
1509 }
1510
1511 # ******************
1512 # CType: mailform
1513 # ******************
1514 tt_content.mailform = COA
1515 tt_content.mailform.10 = < lib.stdheader
1516 tt_content.mailform.20 = FORM
1517 tt_content.mailform.20 {
1518 accessibility = 1
1519 noWrapAttr=1
1520 formName = mailform
1521 dontMd5FieldNames = 1
1522 layout = <div class="csc-mailform-field">###LABEL### ###FIELD###</div>
1523 labelWrap.wrap = |
1524 commentWrap.wrap = |
1525 radioWrap.wrap = |<br />
1526 radioWrap.accessibilityWrap = <fieldset###RADIO_FIELD_ID###><legend>###RADIO_GROUP_LABEL###</legend>|</fieldset>
1527 REQ = 1
1528 REQ.labelWrap.wrap = |
1529 COMMENT.layout = <div class="csc-mailform-label">###LABEL###</div>
1530 RADIO.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-radio">###FIELD###</span></div>
1531 LABEL.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-label">###FIELD###</span></div>
1532 target < lib.parseTarget
1533 target =
1534 target.override = {$styles.content.mailform.target}
1535 goodMess = {$styles.content.mailform.goodMess}
1536 badMess = {$styles.content.mailform.badMess}
1537 redirect.field = pages
1538 redirect.listNum = 0
1539 recipient.field = subheader
1540 data.field = bodytext
1541 locationData = 1
1542 hiddenFields.stdWrap.wrap = <div style="display:none;">|</div>
1543
1544 params.radio = class="csc-mailform-radio"
1545 params.check = class="csc-mailform-check"
1546 params.submit = class="csc-mailform-submit"
1547
1548 stdWrap.wrap = <fieldset class="csc-mailform"> | </fieldset>
1549 stdWrap {
1550 editIcons = tt_content: bodytext, pages, subheader
1551 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.form
1552
1553 prefixComment = 2 | Mail form inserted:
1554 }
1555 }
1556
1557
1558 # ******************
1559 # CType: search
1560 # ******************
1561 tt_content.search = COA
1562 tt_content.search.10 = < lib.stdheader
1563 # Result:
1564 tt_content.search.20 = SEARCHRESULT
1565 tt_content.search.20 {
1566 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
1567 languageField.tt_content = sys_language_uid
1568 renderObj = COA
1569 renderObj {
1570
1571 10 = TEXT
1572 10.field = pages_title
1573 10.htmlSpecialChars = 1
1574 10.typolink {
1575 parameter.field = uid
1576 target < lib.parseTarget
1577 target =
1578 target.override = {$styles.content.searchresult.resultTarget}
1579 additionalParams.data = register:SWORD_PARAMS
1580 additionalParams.required = 1
1581 additionalParams.wrap = &no_cache=1
1582 }
1583 10.htmlSpecialChars = 1
1584 10.wrap = <h3 class="csc-searchResultHeader">|</h3>
1585
1586 20 = COA
1587 20 {
1588 10 = TEXT
1589 10.field = tt_content_bodytext
1590 10.stripHtml = 1
1591 10.htmlSpecialChars = 1
1592 }
1593 20.stdWrap.crop = 200 | ...
1594 20.stdWrap.wrap = <p class="csc-searchResult">|</p>
1595 }
1596
1597 layout = COA
1598 layout {
1599 wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT###
1600
1601 10 = TEXT
1602 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.resultRange
1603 10.wrap = <td class="csc-searchResultRange"><p>|</p></td>
1604
1605 20 = TEXT
1606 20.value = ###PREV###&nbsp;&nbsp;&nbsp;###NEXT###
1607 20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td>
1608 }
1609
1610 noResultObj = COA
1611 noResultObj {
1612 10 = TEXT
1613 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.emptySearch
1614 10.wrap = <h3 class="csc-noSearchResultMsg">|</h3>
1615 }
1616
1617 next = TEXT
1618 next.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultNext
1619
1620 prev = TEXT
1621 prev.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultPrev
1622
1623 target < lib.parseTarget
1624 target =
1625 target.override = {$styles.content.searchresult.target}
1626
1627 range = 20
1628
1629 stdWrap.prefixComment = 2 | Search result:
1630 }
1631
1632 # Form:
1633 tt_content.search.30 < tt_content.mailform.20
1634 tt_content.search.30 {
1635 goodMess = {$styles.content.searchform.goodMess}
1636 redirect >
1637 recipient >
1638 data >
1639 dataArray {
1640 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchWord
1641 10.type = sword=input
1642 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchIn
1643 20.type = scols=select
1644 20.valueArray {
1645 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.headersKeywords
1646 10.value = pages.title-subtitle-keywords-description:tt_content.header
1647 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.pageContent
1648 20.value = tt_content.header-bodytext-imagecaption
1649 }
1650 30.type = stype=hidden
1651 30.value = L0
1652 40.type = submit=submit
1653 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchButton
1654 }
1655 type.field = pages
1656 type.listNum = 0
1657 locationData = HTTP_POST_VARS
1658 no_cache = 1
1659
1660 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-searchform"> | </table>
1661 stdWrap {
1662 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.search
1663
1664 prefixComment = 2 | Search form inserted:
1665 }
1666 }
1667
1668 # ******************
1669 # CType: splash
1670 # ******************
1671 # Deprecated element.
1672 # Still here for backwards compliance with plugins using the "text box" type.
1673 tt_content.splash = CASE
1674 tt_content.splash.key.field = splash_layout
1675 tt_content.splash.stdWrap {
1676 prefixComment = 2 | Textbox inserted (Deprecated)
1677 }
1678 tt_content.splash.default = COA
1679 tt_content.splash.default {
1680 20 = CTABLE
1681 20 {
1682 c.1 = < tt_content.text
1683 lm.1 = IMAGE
1684 lm.1.file {
1685 import = uploads/pics/
1686 import.field = image
1687 import.listNum = 0
1688 maxW.field = imagewidth
1689 maxW.ifEmpty = 200
1690 }
1691 cMargins = 30,0,0,0
1692 }
1693 }
1694 tt_content.splash.1 < tt_content.splash.default
1695 tt_content.splash.1.20.lm.1.file >
1696 tt_content.splash.1.20.lm.1.file = GIFBUILDER
1697 tt_content.splash.1.20.lm.1.file {
1698 XY = [10.w]+10,[10.h]+10
1699 backColor = {$content.splash.bgCol}
1700 backColor.override.data = register:pageColor
1701 format = jpg
1702 5 = BOX
1703 5.dimensions = 3,3,[10.w],[10.h]
1704 5.color = #333333
1705 7 = EFFECT
1706 7.value = blur=99|blur=99|blur=99|blur=99|blur=99|blur=99|blur=99
1707 10 = IMAGE
1708 10.file {
1709 import = uploads/pics/
1710 import.field = image
1711 import.listNum = 0
1712 maxW.field = imagewidth
1713 maxW.ifEmpty = 200
1714 }
1715 }
1716 // The image frames are not available unless TypoScript code from styles.content.imgFrames.x is provided manually:
1717 tt_content.splash.2 < tt_content.splash.default
1718 #tt_content.splash.2.20.lm.1.file.m < styles.content.imgFrames.1
1719 tt_content.splash.3 < tt_content.splash.default
1720 #tt_content.splash.3.20.lm.1.file.m < styles.content.imgFrames.2
1721
1722 // From plugin.postit1, if included:
1723 tt_content.splash.20 = < plugin.postit1
1724
1725
1726
1727 # ****************
1728 # CType: menu
1729 # ****************
1730 tt_content.menu = COA
1731 tt_content.menu {
1732 10 = < lib.stdheader
1733
1734 20 = CASE
1735 20 {
1736 key.field = menu_type
1737
1738 # "Menu of these pages"
1739 default = HMENU
1740 default {
1741 special = list
1742 special.value.field = pages
1743 stdWrap {
1744 prepend = COA
1745 prepend {
1746 stdWrap {
1747 if.isTrue.field = accessibility_bypass
1748 }
1749 10 = LOAD_REGISTER
1750 10 {
1751 accessibility_bypass_text = TEXT
1752 accessibility_bypass_text {
1753 field = accessibility_bypass_text
1754 }
1755 }
1756 20 = CONTENT
1757 20 {
1758 table = tt_content
1759 select {
1760 pidInList = this
1761 orderBy = sorting
1762 andWhere {
1763 dataWrap = sorting>{field:sorting}
1764 }
1765 languageField = sys_language_uid
1766 max = 1
1767 }
1768 renderObj = TEXT
1769 renderObj {
1770 required = 1
1771 data = LLL:EXT:css_styled_content/pi1/locallang.xml:menu.bypassNavigation
1772 override.data = register:accessibility_bypass_text
1773 trim = 1
1774 htmlSpecialChars = 1
1775 noBlur = 1
1776 typolink {
1777 parameter {
1778 field = pid
1779 }
1780 section {
1781 field = uid
1782 }
1783 }
1784 wrap = <li class="csc-nav-bypass">|</li>
1785 }
1786 }
1787 30 = RESTORE_REGISTER
1788 }
1789 outerWrap = <ul class="csc-menu csc-menu-def">|</ul>
1790 required = 1
1791 }
1792 1 = TMENU
1793 1 {
1794 target < lib.parseTarget
1795 target =
1796 target.override = {$PAGE_TARGET}
1797 NO {
1798 stdWrap.htmlSpecialChars = 1
1799 wrapItemAndSub = <li>|</li>
1800 ATagTitle.field = description // title
1801 }
1802 noBlur = 1
1803 }
1804 }
1805
1806 # "Menu of subpages to these pages"
1807 1 < .default
1808 1 {
1809 special = directory
1810 stdWrap {
1811 outerWrap = <ul class="csc-menu csc-menu-1">|</ul>
1812 }
1813 }
1814
1815 # "Sitemap - liststyle"
1816 2 = HMENU
1817 2 {
1818 stdWrap < tt_content.menu.20.default.stdWrap
1819 stdWrap {
1820 outerWrap = <div class="csc-sitemap">|</div>
1821 }
1822 1 = TMENU
1823 1 {
1824 target < lib.parseTarget
1825 target =
1826 target.override = {$PAGE_TARGET}
1827 noBlur = 1
1828 expAll = 1
1829 wrap = <ul>|</ul>
1830 NO {
1831 stdWrap.htmlSpecialChars = 1
1832 wrapItemAndSub = <li>|</li>
1833 ATagTitle.field = description // title
1834 }
1835 }
1836 2 < .1
1837 3 < .1
1838 4 < .1
1839 5 < .1
1840 6 < .1
1841 7 < .1
1842 }
1843
1844 # "Section index (pagecontent w/Index checked - liststyle)"
1845 3 < .default
1846 3 {
1847 special {
1848 value {
1849 override {
1850 data = page:uid
1851 if {
1852 isFalse.field = pages
1853 }
1854 }
1855 }
1856 }
1857 stdWrap {
1858 outerWrap = <ul class="csc-menu csc-menu-3">|</ul>
1859 }
1860 1 = TMENU
1861 1 {
1862 sectionIndex = 1
1863 sectionIndex.type = header
1864 NO.wrapItemAndSub = <li class="csc-section">|</li>
1865 }
1866 }
1867
1868 # "Menu of subpages to these pages (with abstract)"
1869 4 < .1
1870 4 {
1871 stdWrap {
1872 prepend.renderObj.wrap = <dt class="csc-nav-bypass">|</dt><dd>&nbsp;</dd>
1873 outerWrap = <dl class="csc-menu csc-menu-4">|</dl>
1874 }
1875 1.NO {
1876 wrapItemAndSub >
1877 linkWrap = <dt>|</dt>
1878 after {
1879 cObject = TEXT
1880 cObject {
1881 data = field : abstract // field : description // field : subtitle
1882 htmlSpecialChars = 1
1883 required = 1
1884 }
1885 ifBlank = &nbsp;
1886 wrap = <dd>|</dd>
1887 }
1888 ATagTitle.field = description // title
1889 }
1890 }
1891
1892 # "Recently updated pages"
1893 5 < .default
1894 5 {
1895 stdWrap {
1896 outerWrap = <ul class="csc-menu csc-menu-5">|</ul>
1897 }
1898 special = updated
1899 special {
1900 maxAge = 3600*24*7
1901 excludeNoSearchPages = 1
1902 }
1903 }
1904
1905 # "Related pages (based on keywords)"
1906 6 < .default
1907 6 {
1908 stdWrap {
1909 outerWrap = <ul class="csc-menu csc-menu-6">|</ul>
1910 }
1911 special = keywords
1912 special {
1913 excludeNoSearchPages = 1
1914 }
1915 }
1916
1917 # "Menu of subpages to these pages + sections - liststyle"
1918 7 < .1
1919 7 {
1920 stdWrap {
1921 outerWrap = <ul class="csc-menu csc-menu-7">|</ul>
1922 }
1923 1.expAll = 1
1924 2 < .1
1925 2 {
1926 sectionIndex = 1
1927 sectionIndex.type = header
1928 wrap = <ul>|</ul>
1929 NO.wrapItemAndSub = <li class="csc-section">|</li>
1930 }
1931 }
1932 }
1933
1934 20.stdWrap {
1935 wrap {
1936 cObject = COA
1937 cObject {
1938 10 = TEXT
1939 10 {
1940 field = accessibility_title
1941 htmlSpecialChars = 1
1942 dataWrap = <map id="map{field:uid}" title="|">
1943 dataWrap {
1944 override = <map name="map{field:uid}" title="|">
1945 override {
1946 if {
1947 isFalse.data = TSFE:xhtmlDoctype
1948 }
1949 }
1950 }
1951 }
1952
1953 20 = TEXT
1954 20 {
1955 value = |</map>
1956 }
1957 }
1958 if {
1959 isTrue {
1960 field = accessibility_title
1961 }
1962 }
1963 }
1964 editIcons = tt_content: menu_type, pages
1965 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.menuSitemap
1966
1967 prefixComment = 2 | Menu/Sitemap element:
1968 }
1969 }
1970
1971
1972
1973 # ****************
1974 # CType: shortcut
1975 # ****************
1976 # Should be a complete copy from the old static template "content (default)"
1977 tt_content.shortcut = COA
1978 tt_content.shortcut {
1979 20 = CASE
1980 20.key.field = layout
1981 20.0= RECORDS
1982 20.0 {
1983 source.field = records
1984 tables = {$content.shortcut.tables}
1985 }
1986 20.1= RECORDS
1987 20.1 {
1988 source.field = records
1989 tables = {$content.shortcut.tables}
1990 }
1991
1992 20.stdWrap {
1993 editIcons = tt_content: records
1994 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.recordList
1995
1996 prefixComment = 2 | Inclusion of other records (by reference):
1997 }
1998 }
1999
2000
2001 # ****************
2002 # CType: list
2003 # ****************
2004 # Should be a complete copy from the old static template "content (default)" (except "lib.stdheader")
2005 tt_content.list = COA
2006 tt_content.list {
2007 10 = < lib.stdheader
2008
2009 20 = CASE
2010 20.key.field = list_type
2011
2012 20.stdWrap {
2013 editIcons = tt_content: list_type, layout, select_key, pages [recursive]
2014 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.plugin
2015
2016 prefixComment = 2 | Plugin inserted:
2017 }
2018 }
2019
2020
2021 # ****************
2022 # CType: script
2023 # ****************
2024 # OBSOLETE! Please make extensions instead. The "script" content element was meant for these custom purposes in the past. Today extensions will do the job better.
2025 tt_content.script = TEXT
2026 tt_content.script {
2027 value =
2028
2029 prefixComment = 2 | Script element (Deprecated)
2030 }
2031
2032
2033 # ****************
2034 # CType: div
2035 # ****************
2036 tt_content.div = TEXT
2037 tt_content.div {
2038 value = <hr>
2039 override = <hr />
2040 override.if {
2041 isTrue.data = TSFE:xhtmlDoctype
2042 }
2043 wrap = <div class="divider">|</div>
2044 prefixComment = 2 | Div element
2045 }
2046
2047
2048 # ****************
2049 # CType: html
2050 # ****************
2051 # This truely IS a content object, launched from inside the PHP class of course.
2052 # Should be a complete copy from the old static template "content (default)"
2053 tt_content.html = TEXT
2054 tt_content.html {
2055 field = bodytext
2056
2057 editIcons = tt_content: pages
2058 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.html
2059
2060 prefixComment = 2 | Raw HTML content:
2061 }
2062
2063
2064 # ****************
2065 # Default error msg:
2066 # ****************
2067 tt_content.default = TEXT
2068 tt_content.default {
2069 field = CType
2070 wrap = <p style="background-color: yellow;"><b>ERROR:</b> Content Element type "|" has no rendering definition!</p>
2071
2072 prefixComment = 2 | Unknown element message:
2073 }
2074
2075 # *********************************************************************
2076 # ACCESSIBILTY MODE
2077 # *********************************************************************
2078
2079
2080
2081
2082
2083
2084
2085 plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE (
2086 /* Headers */
2087 .csc-header-alignment-center { text-align: center; }
2088 .csc-header-alignment-right { text-align: right; }
2089 .csc-header-alignment-left { text-align: left; }
2090
2091 /* Clear floats after csc-textpic and after csc-textpic-imagerow */
2092 DIV.csc-textpic, DIV.csc-textpic DIV.csc-textpic-imagerow, UL.csc-uploads LI { overflow: hidden; }
2093
2094 /* Set padding for tables */
2095 DIV.csc-textpic .csc-textpic-imagewrap table { border-collapse: collapse; border-spacing: 0; }
2096 DIV.csc-textpic .csc-textpic-imagewrap table tr td { padding: 0; vertical-align: top; }
2097
2098 /* Settings for figure and figcaption (HTML5) */
2099 DIV.csc-textpic .csc-textpic-imagewrap FIGURE, DIV.csc-textpic FIGURE.csc-textpic-imagewrap { margin: 0; display: table; }
2100
2101 /* Captions */
2102 FIGCAPTION.csc-textpic-caption { display: table-caption; }
2103 .csc-textpic-caption { text-align: left; caption-side: bottom; }
2104 DIV.csc-textpic-caption-c .csc-textpic-caption, .csc-textpic-imagewrap .csc-textpic-caption-c { text-align: center; }
2105 DIV.csc-textpic-caption-r .csc-textpic-caption, .csc-textpic-imagewrap .csc-textpic-caption-r { text-align: right; }
2106 DIV.csc-textpic-caption-l .csc-textpic-caption, .csc-textpic-imagewrap .csc-textpic-caption-l { text-align: left; }
2107
2108 /* Float the columns */
2109 DIV.csc-textpic DIV.csc-textpic-imagecolumn { float: left; }
2110
2111 /* Border just around the image */
2112 {$styles.content.imgtext.borderSelector} {
2113 border: {$styles.content.imgtext.borderThick}px solid {$styles.content.imgtext.borderColor};
2114 padding: {$styles.content.imgtext.borderSpace}px {$styles.content.imgtext.borderSpace}px;
2115 }
2116
2117 DIV.csc-textpic .csc-textpic-imagewrap IMG { border: none; display: block; }
2118
2119 /* Space below each image (also in-between rows) */
2120 DIV.csc-textpic .csc-textpic-imagewrap .csc-textpic-image { margin-bottom: {$styles.content.imgtext.rowSpace}px; }
2121 DIV.csc-textpic .csc-textpic-imagewrap .csc-textpic-imagerow-last .csc-textpic-image { margin-bottom: 0; }
2122
2123 /* colSpace around image columns, except for last column */
2124 DIV.csc-textpic-imagecolumn, TD.csc-textpic-imagecolumn .csc-textpic-image { margin-right: {$styles.content.imgtext.colSpace}px; }
2125 DIV.csc-textpic-imagecolumn.csc-textpic-lastcol, TD.csc-textpic-imagecolumn.csc-textpic-lastcol .csc-textpic-image { margin-right: 0; }
2126
2127 /* Add margin from image-block to text (in case of "Text w/ images") */
2128 DIV.csc-textpic-intext-left .csc-textpic-imagewrap,
2129 DIV.csc-textpic-intext-left-nowrap .csc-textpic-imagewrap {
2130 margin-right: {$styles.content.imgtext.textMargin}px;
2131 }
2132 DIV.csc-textpic-intext-right .csc-textpic-imagewrap,
2133 DIV.csc-textpic-intext-right-nowrap .csc-textpic-imagewrap {
2134 margin-left: {$styles.content.imgtext.textMargin}px;
2135 }
2136
2137 /* Positioning of images: */
2138
2139 /* Center (above or below) */
2140 DIV.csc-textpic-center .csc-textpic-imagewrap, DIV.csc-textpic-center FIGURE.csc-textpic-imagewrap { max-width: {$styles.content.imgtext.maxW}px; margin: 0 auto; }
2141
2142 /* Right (above or below) */
2143 DIV.csc-textpic-right .csc-textpic-imagewrap { float: right; }
2144 DIV.csc-textpic-right DIV.csc-textpic-text { clear: right; }
2145
2146 /* Left (above or below) */
2147 DIV.csc-textpic-left .csc-textpic-imagewrap { float: left; }
2148 DIV.csc-textpic-left DIV.csc-textpic-text { clear: left; }
2149
2150 /* Left (in text) */
2151 DIV.csc-textpic-intext-left .csc-textpic-imagewrap { float: left; }
2152
2153 /* Right (in text) */
2154 DIV.csc-textpic-intext-right .csc-textpic-imagewrap { float: right; }
2155
2156 /* Right (in text, no wrap around) */
2157 DIV.csc-textpic-intext-right-nowrap .csc-textpic-imagewrap { float: right; }
2158
2159 /* Left (in text, no wrap around) */
2160 DIV.csc-textpic-intext-left-nowrap .csc-textpic-imagewrap { float: left; }
2161
2162 DIV.csc-textpic DIV.csc-textpic-imagerow-last, DIV.csc-textpic DIV.csc-textpic-imagerow-none DIV.csc-textpic-last { margin-bottom: 0; }
2163
2164 /* Browser fixes: */
2165
2166 /* Fix for unordered and ordered list with image "In text, left" */
2167 .csc-textpic-intext-left ol, .csc-textpic-intext-left ul { padding-left: 40px; overflow: auto; }
2168
2169 /* File Links */
2170 UL.csc-uploads { padding: 0; }
2171 UL.csc-uploads LI { list-style: none outside none; margin: 1em 0; }
2172 UL.csc-uploads IMG { float: left; padding-right: 1em; vertical-align: top; }
2173 UL.csc-uploads SPAN { display: block; }
2174 UL.csc-uploads SPAN.csc-uploads-fileName { text-decoration: underline; }
2175
2176 /* Table background colors: */
2177
2178 TABLE.contenttable-color-1 { background-color: {$styles.content.table.backgroundColor.1}; }
2179 TABLE.contenttable-color-2 { background-color: {$styles.content.table.backgroundColor.2}; }
2180 TABLE.contenttable-color-240 { background-color: {$styles.content.table.backgroundColor.240}; }
2181 TABLE.contenttable-color-241 { background-color: {$styles.content.table.backgroundColor.241}; }
2182 TABLE.contenttable-color-242 { background-color: {$styles.content.table.backgroundColor.242}; }
2183 TABLE.contenttable-color-243 { background-color: {$styles.content.table.backgroundColor.243}; }
2184 TABLE.contenttable-color-244 { background-color: {$styles.content.table.backgroundColor.244}; }
2185 )
2186